aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index e19700d..2909c42 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -546,7 +546,7 @@ fold_gimple_cond (gcond *stmt)
if (result)
{
STRIP_USELESS_TYPE_CONVERSION (result);
- if (is_gimple_condexpr (result) && valid_gimple_rhs_p (result))
+ if (is_gimple_condexpr (result))
{
gimple_cond_set_condition_from_tree (stmt, result);
return true;