ref: 24ea01171738b8c7612074650557438521c218e2
parent: d0655ce4b8538de8a15f669eef1e71898061c811
author: Ori Bernstein <[email protected]>
date: Sat May 12 15:05:13 EDT 2012
Don't double add stmts in blocks.
--- a/8/reduce.c
+++ b/8/reduce.c
@@ -201,12 +201,9 @@
void simpblk(Simp *s, Node *n)
{
int i;
- Node *e;
for (i = 0; i < n->block.nstmts; i++) {
- e = simp(s, n->block.stmts[i]);
- if (e)
- append(s, e);
+ simp(s, n->block.stmts[i]);
}
}