summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2013-02-06 22:31:58 -0500
committerOri Bernstein <orib@google.com>2013-02-06 22:32:01 -0500
commitdf3be17970375f2a05281aad81734be0db8f4983 (patch)
tree85f9d91f7ff545a0666ffc19cc09987c19ce59f7 /6/simp.c
parent95a76e16ded89189df3f85bfbaf5d40088e5cd97 (diff)
parent10a3edcf0264c6e2b878a230f4a77f8954b67d0d (diff)
downloadmc-df3be17970375f2a05281aad81734be0db8f4983.tar.gz
Merge in the nop move deletion.
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;
}