diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-23 02:00:23 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-23 02:00:23 -0400 |
| commit | 46eb77dbb200756b96bfae4c5166397fefba66d0 (patch) | |
| tree | 618f0117563dfabbe0e4253f6fa817e526b5a64c /src | |
| parent | 4b902b44a244e29106637f9777aa71b1cd4c22d2 (diff) | |
| download | zig-46eb77dbb200756b96bfae4c5166397fefba66d0.tar.gz zig-46eb77dbb200756b96bfae4c5166397fefba66d0.zip | |
stack trace is able to figure out compilation unit
each address is contained within
also fix a bug having to do with codegen for enum value
initialization expressions
Diffstat (limited to 'src')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 6ad0854158..8c2d898ea1 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -729,7 +729,6 @@ static LLVMValueRef gen_enum_value_expr(CodeGen *g, AstNode *node, TypeTableEntr LLVMValueRef new_union_val = gen_expr(g, arg_node); if (arg_node) { arg_node_type = get_expr_type(arg_node); - new_union_val = gen_expr(g, arg_node); } else { arg_node_type = g->builtin_types.entry_void; } @@ -3460,6 +3459,7 @@ static LLVMValueRef gen_switch_expr(CodeGen *g, AstNode *node) { zig_unreachable(); } if (make_item_blocks) { + set_debug_source_node(g, var_node); LLVMBuildBr(g->builder, prong_block); } } else { |
