From 01b1385672bd6a395f498c1d09b45389b13981ac Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 5 Mar 2020 20:36:53 +0000 Subject: Disable tmp_block behaviour for `ir_find_or_generate_context_ptr` --- src/ir.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/ir.cpp') 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); -- cgit v1.2.3