aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-08-05 10:31:20 +0100
committergingerBill <bill@gingerbill.org>2018-08-05 10:31:20 +0100
commit462d81430c8e8824899b3920dc02e367fd2c3a46 (patch)
tree328edabb9ac3fe4b6c5bf32fb97f14b29f9aa4a7 /src
parentd3cada5bd6dec9342909a4d1638c352b098a1007 (diff)
Fix map runtime issue regarding erasing a key
Diffstat (limited to 'src')
-rw-r--r--src/ir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index c59be047f..8d555c7b3 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -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;
}