mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
ir: ability to modify global vars
This commit is contained in:
1 parent
8e2804efa1
commit
afc5507b64
5 files changed
+188
-72
No files matched your search
+1
-1
@@ -2885,7 +2885,7 @@ static LLVMValueRef ir_render_var_ptr(CodeGen *g, IrExecutable *executable, IrIn
|
||||
VariableTableEntry *var = instruction->var;
|
||||
if (type_has_bits(var->type)) {
|
||||
assert(var->value_ref);
|
||||
return get_handle_value(g, var->value_ref, var->type);
|
||||
return var->value_ref;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user