| ... | @@ -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; |
| 3375 | | 3375 | |
| 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; |