fix debug info for function pointers

found when testing against LLVM 8

see https://bugs.llvm.org/show_bug.cgi?id=40198
This commit is contained in:
Andrew Kelley
2019-01-08 10:57:39 -05:00
parent 013c7b24d2
commit aa65b94671
3 changed files with 6 additions and 2 deletions

View File

@@ -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);