summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
authorandrewc <andrew_chambers@trimble.com>2016-01-13 15:22:47 +1300
committerandrewc <andrew_chambers@trimble.com>2016-01-13 15:42:32 +1300
commit22c1d29270da65c64ba4c6420baf011f952c6c12 (patch)
tree87f9e65ab0b584ee29c35bed0ffb207f2130090f /6/simp.c
parentdf39695ef7997e8cfb4bb3e00976c4689edb15f5 (diff)
downloadmc-22c1d29270da65c64ba4c6420baf011f952c6c12.tar.gz
Require '->' to have an argument
Diffstat (limited to '6/simp.c')
-rw-r--r--6/simp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index 1b21ed7..23cb904 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -1636,7 +1636,7 @@ static Node *rval(Simp *s, Node *n, Node *dst)
u = disp(n->loc, size(args[0]));
v = mkexpr(n->loc, Oblit, s->ret, t, u, NULL);
append(s, v);
- } else if (n->expr.nargs && n->expr.args[0]) {
+ } else {
t = s->ret;
u = rval(s, args[0], NULL);
/* void calls return nothing */