summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--6/simp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index ae51124..a68dc5d 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -331,7 +331,8 @@ static Node *temp(Simp *simp, Node *e)
assert(e->type == Nexpr);
t = gentemp(simp, e, e->expr.type, &dcl);
- declarelocal(simp, dcl);
+ if (stacknode(e))
+ declarelocal(simp, dcl);
return t;
}