Commit 521fce52 by Andrew Haley Committed by Andrew Haley

typeck.c: Use fold_convert for ints and booleans.

2004-12-20  Andrew Haley  <aph@redhat.com>

        * typeck.c: Use fold_convert for ints and booleans.

From-SVN: r92419
parent 094a624b
2004-12-20 Andrew Haley <aph@redhat.com>
* typeck.c: Use fold_convert for ints and booleans.
2004-12-17 Andrew Haley <aph@redhat.com>
PR java/18931
......
......@@ -130,7 +130,7 @@ convert (tree type, tree expr)
if (code == VOID_TYPE)
return build1 (CONVERT_EXPR, type, expr);
if (code == BOOLEAN_TYPE || code == CHAR_TYPE)
return fold (build1 (CONVERT_EXPR, type, expr));
return fold_convert (type, expr);
if (code == INTEGER_TYPE)
{
if ((really_constant_p (expr)
......
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