summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
Diffstat (limited to '6/simp.c')
-rw-r--r--6/simp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/6/simp.c b/6/simp.c
index acf2db3..457227e 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -790,6 +790,7 @@ assign(Simp *s, Node *lhs, Node *rhs)
u = addr(s, u, exprtype(lhs));
v = disp(lhs->loc, size(lhs));
r = mkexpr(lhs->loc, Oblit, t, u, v, NULL);
+ r->expr.type = exprtype(lhs);
} else {
r = set(t, u);
}