Fix map runtime issue regarding erasing a key

This commit is contained in:
gingerBill
2018-08-05 10:31:20 +01:00
parent d3cada5bd6
commit 462d81430c
2 changed files with 15 additions and 12 deletions
+1
View File
@@ -1753,6 +1753,7 @@ void ir_emit_defer_stmts(irProcedure *proc, irDeferExitKind kind, irBlock *block
while (i --> 0) {
irDefer d = proc->defer_stmts[i];
if (d.context_stack_count >= 0) {
GB_ASSERT(proc->context_stack.count >= d.context_stack_count);
proc->context_stack.count = d.context_stack_count;
}