summaryrefslogtreecommitdiff
path: root/compile.c
diff options
authorAaron Patterson <tenderlove@ruby-lang.org>2024-01-18 12:35:52 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2024-01-19 09:35:36 -0800
commit200d3cc14d4c98bfee3826bda9c0e09a1113d939 (patch)
tree35687da0210bfd849b4055e5f746f1c049882d79 /compile.c
parent400341aee9aad650b1e75bc840362d1dc8dd108d (diff)
add assert on SP
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 5c69c860e0..8d3588c81b 100644
--- a/compile.c
+++ b/compile.c
@@ -2855,6 +2855,7 @@ iseq_set_exception_table(rb_iseq_t *iseq)
if (entry->type == CATCH_TYPE_RESCUE ||
entry->type == CATCH_TYPE_BREAK ||
entry->type == CATCH_TYPE_NEXT) {
+ RUBY_ASSERT(entry->sp > 0);
entry->sp--;
}
}
close