aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-04-09 14:21:00 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-04-09 14:21:55 -0700
commit7026bed4625b4fe9ac068b045a17e822791ceb93 (patch)
tree652760a2b18c6f7b2f303074705e333ba4c7d500 /src/analyze.cpp
parent7a05e18efb35330475e7ee6253f9fec6103c560f (diff)
downloadzig-7026bed4625b4fe9ac068b045a17e822791ceb93.tar.gz
zig-7026bed4625b4fe9ac068b045a17e822791ceb93.zip
fix debug symbols regression after llvm 3.8.0
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 0ec07c8ac2..d908c7fcbe 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -1012,6 +1012,7 @@ static void resolve_function_proto(CodeGen *g, AstNode *node, FnTableEntry *fn_t
BlockContext *context = new_block_context(fn_table_entry->fn_def_node, containing_context);
fn_table_entry->fn_def_node->data.fn_def.block_context = context;
context->di_scope = LLVMZigSubprogramToScope(subprogram);
+ ZigLLVMFnSetSubprogram(fn_table_entry->fn_value, subprogram);
}
}