diff options
author | spew <devnull@localhost> | 2018-05-28 19:38:33 -0400 |
---|---|---|
committer | spew <devnull@localhost> | 2018-05-28 19:38:33 -0400 |
commit | 3d0ebdc439039f1e01ee5fa0f75b1de1a12c12f1 (patch) | |
tree | 0aa21edb180ba2b5d39d34dd502905b33cdcfeb4 /sys/src/cmd/6c | |
parent | 6b22a732e80cfbb28db8d707d5938141abf63a79 (diff) |
6c, 8c: Fix nocast cast bug which prevents address arithmetic from being computed at compile time
Diffstat (limited to 'sys/src/cmd/6c')
-rw-r--r-- | sys/src/cmd/6c/sgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/6c/sgen.c b/sys/src/cmd/6c/sgen.c index 14e5f3c7e..fa5df6634 100644 --- a/sys/src/cmd/6c/sgen.c +++ b/sys/src/cmd/6c/sgen.c @@ -105,7 +105,8 @@ xcom(Node *n) case OADD: xcom(l); xcom(r); - if(n->type->etype != TIND) + if(n->type->etype != TIND && + !(l->type->etype == TIND && r->type->etype == TIND)) break; switch(r->addable) { |