Fix defer on branching with new scoping rules
This commit is contained in:
1 parent
9dabbc2c95
commit
f647187e53
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -2967,7 +2967,7 @@ void ir_emit_defer_stmts(irProcedure *proc, irDeferExitKind kind, irBlock *block
|
||||
ir_build_defer_stmt(proc, d);
|
||||
} else if (kind == irDeferExit_Branch) {
|
||||
GB_ASSERT(block != nullptr);
|
||||
isize lower_limit = block->scope_index+1;
|
||||
isize lower_limit = block->scope_index;
|
||||
if (lower_limit < d.scope_index) {
|
||||
ir_build_defer_stmt(proc, d);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user