parent
103894f118
commit
1180eb1042
|
@ -2019,6 +2019,7 @@ truthvalue_conversion (expr)
|
|||
case TRUTH_AND_EXPR:
|
||||
case TRUTH_OR_EXPR:
|
||||
case TRUTH_XOR_EXPR:
|
||||
case TRUTH_NOT_EXPR:
|
||||
TREE_TYPE (expr) = boolean_type_node;
|
||||
return expr;
|
||||
|
||||
|
|
|
@ -4201,7 +4201,11 @@ fold (expr)
|
|||
and its values must be 0 or 1.
|
||||
("true" is a fixed value perhaps depending on the language,
|
||||
but we don't handle values other than 1 correctly yet.) */
|
||||
return invert_truthvalue (arg0);
|
||||
tem = invert_truthvalue (arg0);
|
||||
/* Avoid infinite recursion. */
|
||||
if (TREE_CODE (tem) == TRUTH_NOT_EXPR)
|
||||
return t;
|
||||
return convert (type, tem);
|
||||
|
||||
case TRUTH_ANDIF_EXPR:
|
||||
/* Note that the operands of this must be ints
|
||||
|
|
Loading…
Reference in New Issue