aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-01-08 10:57:39 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-01-08 11:53:51 -0500
commitaa65b946711d6f51050977880f64a70f13637e45 (patch)
tree0a1ca1521b83a90a1909d9b6d60bc0457b1303fa /src/codegen.cpp
parent013c7b24d2a2c1f81d2fbcd7c2d07ed582b7acd9 (diff)
downloadzig-aa65b946711d6f51050977880f64a70f13637e45.tar.gz
zig-aa65b946711d6f51050977880f64a70f13637e45.zip
fix debug info for function pointers
found when testing against LLVM 8 see https://bugs.llvm.org/show_bug.cgi?id=40198
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index db8a5f7bb2..0c979386e3 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -649,7 +649,7 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
ZigLLVMDISubprogram *subprogram = ZigLLVMCreateFunction(g->dbuilder,
fn_di_scope, buf_ptr(&fn_table_entry->symbol_name), "",
import->di_file, line_number,
- fn_table_entry->type_entry->di_type, is_internal_linkage,
+ fn_table_entry->type_entry->data.fn.raw_di_type, is_internal_linkage,
is_definition, scope_line, flags, is_optimized, nullptr);
scope->di_scope = ZigLLVMSubprogramToScope(subprogram);