Commit 9ace7f9e by James A. Morrison

fold-const.c (invert_truthvalue): <INTEGER_CST>: Call constant_boolean_node.

2005-02-16  James A. Morrison  <phython@gcc.gnu.org>

        * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
        constant_boolean_node.

From-SVN: r95146
parent d983bb51
2005-02-16 James A. Morrison <phython@gcc.gnu.org>
* fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
constant_boolean_node.
2005-02-16 David Edelsohn <edelsohn@gnu.org>
PR target/19019
......
......@@ -2936,8 +2936,7 @@ invert_truthvalue (tree arg)
switch (code)
{
case INTEGER_CST:
return fold_convert (type,
build_int_cst (NULL_TREE, integer_zerop (arg)));
return constant_boolean_node (integer_zerop (arg), type);
case TRUTH_AND_EXPR:
return build2 (TRUTH_OR_EXPR, type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment