summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
Diffstat (limited to '6/simp.c')
-rw-r--r--6/simp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/6/simp.c b/6/simp.c
index d24183e..7312c6e 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -342,6 +342,8 @@ static Node *temp(Simp *simp, Node *e)
assert(e->type == Nexpr);
t = gentemp(simp, e, e->expr.type, &dcl);
+ if (stacknode(e))
+ declarelocal(simp, dcl);
return t;
}