summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-06-09 13:47:28 -0700
committerOri Bernstein <ori@eigenstate.org>2018-06-09 13:47:28 -0700
commit84393ead97a2e189b6057420ad7d94170b9aa00f (patch)
tree0356c0bc422713adde510745645d652aa867944f /6
parent92840bc1ade4d670ce1b6cd3dc7be48b16148a5e (diff)
downloadmc-84393ead97a2e189b6057420ad7d94170b9aa00f.tar.gz
Consistently and corretly add Oundef.
Diffstat (limited to '6')
-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);
}