summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 01:43:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 01:43:39 +0000
commit02fa3456cee3f424230ff29cbf8f0415c381c9ba (patch)
tree3529fba31d19558e82ff57056ef44907597cf55b /insns.def
parent83d1fdeee57fe1bcd72a78c8146eacafd9e51bef (diff)
vm_insnhelper.c: vm_stack_consistency_error
* vm_insnhelper.c (vm_stack_consistency_error): extracted from insns.def for further info in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def3
1 files changed, 1 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 84bfd822da..96bcc43db8 100644
--- a/insns.def
+++ b/insns.def
@@ -913,8 +913,7 @@ leave
if (OPT_CHECKED_RUN) {
const VALUE *const bp = vm_base_ptr(reg_cfp);
if (reg_cfp->sp != bp) {
- rb_bug("Stack consistency error (sp: %"PRIdPTRDIFF", bp: %"PRIdPTRDIFF")",
- VM_SP_CNT(th, reg_cfp->sp), VM_SP_CNT(th, bp));
+ vm_stack_consistency_error(th, reg_cfp, bp);
}
}