diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 1454d414f09..0c53604e7d5 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -7002,7 +7002,11 @@ fold (expr) /* Avoid adding NOP_EXPRs in case this is an lvalue. */ if (TYPE_MAIN_VARIANT (comp_type) == TYPE_MAIN_VARIANT (type)) - comp_type = type; + { + comp_type = type; + comp_op0 = arg1; + comp_op1 = arg2; + } switch (comp_code) { |