Permalink
Browse files

Remove problematic optimization.

  • Loading branch information...
clayton-shopify committed Jan 20, 2017
1 parent b23fb45 commit 2c0f8f1a23047338a3449b51142b075fb33573f5
Showing with 1 addition and 5 deletions.
  1. +1 −5 mrbgems/mruby-compiler/core/codegen.c
@@ -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;

0 comments on commit 2c0f8f1

Please sign in to comment.