diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-05 10:31:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-05 10:31:20 +0100 |
| commit | 462d81430c8e8824899b3920dc02e367fd2c3a46 (patch) | |
| tree | 328edabb9ac3fe4b6c5bf32fb97f14b29f9aa4a7 /src/ir.cpp | |
| parent | d3cada5bd6dec9342909a4d1638c352b098a1007 (diff) | |
Fix map runtime issue regarding erasing a key
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
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; } |