summaryrefslogtreecommitdiff
path: root/mi/flatten.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/flatten.c')
-rw-r--r--mi/flatten.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mi/flatten.c b/mi/flatten.c
index 5a74996..e4817d3 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -560,8 +560,9 @@ rval(Flattenctx *s, Node *n)
if (ty->type == Tyslice || ty->type == Tyarray) {
r = seqlen(s, args[0], exprtype(n));
} else {
+ case Otupmemb:
t = rval(s, args[0]);
- r = mkexpr(n->loc, Omemb, t, args[1], NULL);
+ r = mkexpr(n->loc, exprop(n), t, args[1], NULL);
r->expr.type = n->expr.type;
}
break;
@@ -696,6 +697,7 @@ lval(Flattenctx *s, Node *n)
case Ovar: r = n; break;
case Oidx: r = rval(s, n); break;
case Oderef: r = rval(s, n); break;
+ case Otupmemb: r = rval(s, n); break;
case Omemb: r = rval(s, n); break;
case Ostruct: r = rval(s, n); break;