commit e04a52cc00199ad293774ad6b09d5a1d185109ee
parent 465a3c169b168fec1da5e95ede3cbdb7c71fd83e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 13 Jul 2017 18:55:41 +0200
[cc1] Don't try to simplify an assignation
How can you simplify an assignation?
Diffstat:
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/cc1/fold.c b/cc1/fold.c
@@ -656,6 +656,17 @@ simplify(Node *np)
case OCALL:
case OPAR:
case OSYM:
+ case OASSIGN:
+ case OA_MUL:
+ case OA_DIV:
+ case OA_MOD:
+ case OA_ADD:
+ case OA_SUB:
+ case OA_SHL:
+ case OA_SHR:
+ case OA_AND:
+ case OA_XOR:
+ case OA_OR:
return np;
case OSNEG:
case OCPL:
@@ -663,9 +674,6 @@ simplify(Node *np)
case OPTR:
case INC:
case DEC:
- case OASSIGN:
- case OA_ADD:
- case OA_SUB:
case OCAST:
case ONEG:
assert(!r);