Merge pull request #2821 from cremno/push-only-after-op_getconst-in-val-mode

push only after OP_GETCONST in VAL mode
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-06-03 22:38:32 +09:00
+3 -1
View File
@@ -1942,7 +1942,9 @@ codegen(codegen_scope *s, node *tree, int val)
int sym = new_sym(s, sym(tree));
genop(s, MKOP_ABx(OP_GETCONST, cursp(), sym));
push();
if (val) {
push();
}
}
break;