diff options
| author | gingerBill <bill@gingerbill.org> | 2020-03-05 20:36:53 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-03-05 20:36:53 +0000 |
| commit | 01b1385672bd6a395f498c1d09b45389b13981ac (patch) | |
| tree | 62f9b40a053f30a06c8ac6030672d19bcc4de1cf /src/ir.cpp | |
| parent | e92fdb4a99bf9d27009dd35fdd074ff14facfc03 (diff) | |
Disable tmp_block behaviour for `ir_find_or_generate_context_ptr`
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index ece960e2b..1258f0308 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -3103,10 +3103,9 @@ irValue *ir_find_or_generate_context_ptr(irProcedure *proc) { return proc->context_stack[proc->context_stack.count-1].value; } - irBlock *tmp_block = proc->curr_block; - proc->curr_block = proc->blocks[0]; - - defer (proc->curr_block = tmp_block); + // irBlock *tmp_block = proc->curr_block; + // proc->curr_block = proc->blocks[0]; + // defer (proc->curr_block = tmp_block); irValue *c = ir_add_local_generated(proc, t_context, true); ir_push_context_onto_stack(proc, c); |