From 3bf3108c8e34d4d517d9681639e6a84f9761caa6 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 14 Aug 2017 14:18:29 +0000 Subject: type is invariant inside this block git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 170bb99776..cff731f399 100644 --- a/compile.c +++ b/compile.c @@ -5615,7 +5615,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, NODE *node, int popp } /* dummy receiver */ - ADD_INSN1(ret, line, putobject, nd_type(node) == NODE_ZSUPER ? Qfalse : Qtrue); + ADD_INSN1(ret, line, putobject, type == NODE_ZSUPER ? Qfalse : Qtrue); ADD_SEQ(ret, args); ADD_INSN3(ret, line, invokesuper, new_callinfo(iseq, 0, argc, flag | VM_CALL_SUPER | VM_CALL_FCALL, keywords, parent_block != NULL), -- cgit v1.2.3