summaryrefslogtreecommitdiff
path: root/mi/flatten.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/flatten.c')
-rw-r--r--mi/flatten.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mi/flatten.c b/mi/flatten.c
index 022ffe4..5a74996 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -537,9 +537,8 @@ rval(Flattenctx *s, Node *n)
args = n->expr.args;
switch (exprop(n)) {
case Oauto:
- r = rval(s, n->expr.args[0]);
- t = temp(s, r);
- r = asn(t, r);
+ t = temp(s, n);
+ r = assign(s, t, n->expr.args[0]);
lappend(&s->curst->autotmp, &s->curst->nautotmp, t);
break;
case Osize: