mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #3402 from clayton-shopify/fix-masgn-optimization
Remove problematic optimization from NODE_MASGN codegen
This commit is contained in:
@@ -1675,7 +1675,6 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
}
|
||||
tree = tree->car;
|
||||
if (tree->car) { /* pre */
|
||||
int first = TRUE;
|
||||
t = tree->car;
|
||||
n = 0;
|
||||
while (t) {
|
||||
@@ -1684,10 +1683,7 @@ codegen(codegen_scope *s, node *tree, int val)
|
||||
n++;
|
||||
}
|
||||
else {
|
||||
if (first) {
|
||||
genop(s, MKOP_A(OP_LOADNIL, rhs+n));
|
||||
first = FALSE;
|
||||
}
|
||||
genop(s, MKOP_A(OP_LOADNIL, rhs+n));
|
||||
gen_assignment(s, t->car, rhs+n, NOVAL);
|
||||
}
|
||||
t = t->cdr;
|
||||
|
||||
Reference in New Issue
Block a user