From db45ec9845c1dee557e035f4c79290b1d6c3fb9e Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 5 Aug 2015 05:43:58 +0000 Subject: [PATCH] insns.def: redundant call * insns.def (leave): remove redundant function call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- insns.def | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/insns.def b/insns.def index ed02b6edba..abcd9a2fda 100644 --- a/insns.def +++ b/insns.def @@ -1027,9 +1027,10 @@ leave (VALUE val) { if (OPT_CHECKED_RUN) { - if (reg_cfp->sp != vm_base_ptr(reg_cfp)) { + 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, vm_base_ptr(reg_cfp))); + VM_SP_CNT(th, reg_cfp->sp), VM_SP_CNT(th, bp)); } }