diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index da27f47..f5b2699 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -5099,7 +5099,7 @@ fold (expr) handled below, if we are converting something to its own type via an object of identical or wider precision, neither conversion is needed. */ - if (inside_type == final_type + if (TYPE_MAIN_VARIANT (inside_type) == TYPE_MAIN_VARIANT (final_type) && ((inter_int && final_int) || (inter_float && final_float)) && inter_prec >= final_prec) return TREE_OPERAND (TREE_OPERAND (t, 0), 0); |