diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 05:43:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 05:43:58 +0000 |
commit | 2c20bf55032bc8a2196642bae0bed8419556919f (patch) | |
tree | 587d373790f969b0a66878022a47362625f76693 | |
parent | 14595fb1afb5c837ca817a8f1f79ba0ced69ce0d (diff) | |
download | ruby-2c20bf55032bc8a2196642bae0bed8419556919f.tar.gz |
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
-rw-r--r-- | insns.def | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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)); } } |