6c, 8c: Fix nocast cast bug which prevents address arithmetic from being computed at compile time
This commit is contained in:
parent
6b22a732e8
commit
3d0ebdc439
2 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -112,7 +112,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) {
|
||||
|
|
Loading…
Reference in a new issue