wrong register adjustment

parent dd149736
...@@ -1017,9 +1017,6 @@ gen_vmassignment(codegen_scope *s, node *tree, int rhs, int val) ...@@ -1017,9 +1017,6 @@ gen_vmassignment(codegen_scope *s, node *tree, int rhs, int val)
} }
} }
} }
if (!val) {
pop();
}
} }
static void static void
...@@ -1639,6 +1636,7 @@ codegen(codegen_scope *s, node *tree, int val) ...@@ -1639,6 +1636,7 @@ codegen(codegen_scope *s, node *tree, int val)
/* variable rhs */ /* variable rhs */
codegen(s, t, VAL); codegen(s, t, VAL);
gen_vmassignment(s, tree->car, rhs, val); gen_vmassignment(s, tree->car, rhs, val);
pop();
} }
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment