authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-26 16:27:24-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-06-26 16:27:24-04:00
log517bdea7549453d958c31cf2af5dc298ea5508a9
treefc1bdbf059e9bf9e99b212aae3056ed0e87e7e77
parent3085d29af83d07769582f751b3c2f5f36634e34b
signaturelock-open Commit is signed but in an unrecognized format.

fix incorrectly omitting variable declarations

in non-debug modes

1 files changed, 0 insertions(+), 3 deletions(-)

src/codegen.cpp-3
...@@ -3373,9 +3373,6 @@ static LLVMValueRef ir_render_decl_var(CodeGen *g, IrExecutable *executable, IrI...@@ -3373,9 +3373,6 @@ static LLVMValueRef ir_render_decl_var(CodeGen *g, IrExecutable *executable, IrI
3373 if (!type_has_bits(var->var_type))3373 if (!type_has_bits(var->var_type))
3374 return nullptr;3374 return nullptr;
33753375
3376 if (var->ref_count == 0 && g->build_mode != BuildModeDebug)
3377 return nullptr;
3378
3379 var->value_ref = ir_llvm_value(g, instruction->var_ptr);3376 var->value_ref = ir_llvm_value(g, instruction->var_ptr);
3380 gen_var_debug_decl(g, var);3377 gen_var_debug_decl(g, var);
3381 return nullptr;3378 return nullptr;