diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-14 09:03:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-14 09:03:08 +0000 |
commit | 22876f4d7ddd65e7ded5dacb6a742680d7c28a40 (patch) | |
tree | 45920042d693b341f30f5e10ec46c73733609dc4 | |
parent | 4c0158ac597bcaeb44ceb8e7ad0ea3b7ac4bcc62 (diff) | |
download | ruby-22876f4d7ddd65e7ded5dacb6a742680d7c28a40.tar.gz |
compile.c: fix variable
* compile.c (iseq_peephole_optimize): use proper variable, without
cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2057,7 +2057,7 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal * send ..., ... | VM_CALL_TAILCALL, ... * leave # unreachable */ - INSN *piobj = (INSN *)get_prev_insn((INSN *)list); + INSN *piobj = (INSN *)get_prev_insn(iobj); enum ruby_vminsn_type previ = piobj->insn_id; if (previ == BIN(send) || previ == BIN(opt_send_without_block) || previ == BIN(invokesuper)) { |