aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/gimple-range-gori.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range-gori.cc b/gcc/gimple-range-gori.cc
index 258da6e..311214c 100644
--- a/gcc/gimple-range-gori.cc
+++ b/gcc/gimple-range-gori.cc
@@ -1322,7 +1322,7 @@ gori_compute::condexpr_adjust (irange &r1, irange &r2, gimple *, tree cond,
if (!COMPARISON_CLASS_P (cond))
return false;
tree type = TREE_TYPE (TREE_OPERAND (cond, 0));
- if (type != TREE_TYPE (TREE_OPERAND (cond, 1)))
+ if (!range_compatible_p (type, TREE_TYPE (TREE_OPERAND (cond, 1))))
return false;
range_operator *hand = range_op_handler (TREE_CODE (cond), type);
if (!hand)