diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index f055d23..24cc752 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -4871,7 +4871,8 @@ fold (expr) && real_zerop (arg1)) return non_lvalue (convert (type, arg0)); /* x+(-0) equals x, even for IEEE. */ - else if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (arg1))) + else if (TREE_CODE (arg1) == REAL_CST + && REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (arg1))) return non_lvalue (convert (type, arg0)); bit_rotate: |