(fold, case GE_EXPR, LT_EXPR): Don't assume result of comparison is

integer_type_node.

From-SVN: r4813
This commit is contained in:
Richard Kenner 1993-07-01 09:48:11 -04:00
parent 20c74d5ea3
commit 56f8e5e67c

View File

@ -4216,11 +4216,13 @@ fold (expr)
TREE_SET_CODE (t, EQ_EXPR);
break;
case GE_EXPR:
return omit_one_operand (integer_type_node,
integer_one_node, arg0);
return omit_one_operand (type,
convert (type, integer_one_node),
arg0);
case LT_EXPR:
return omit_one_operand (integer_type_node,
integer_zero_node, arg0);
return omit_one_operand (type,
convert (type, integer_zero_node),
arg0);
}
}