зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
4c0158ac59
Коммит
22876f4d7d
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче