convert.c (convert_to_integer): Use fold_build1 instead of build1 when converting an integer to an integer.

2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>

        * convert.c (convert_to_integer): Use fold_build1 instead of
        build1 when converting an integer to an integer.

From-SVN: r102680
This commit is contained in:
Andrew Pinski 2005-08-03 04:37:38 +00:00 committed by Andrew Pinski
parent 65030b761e
commit c7f59e9c21
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
* convert.c (convert_to_integer): Use fold_build1 instead of
build1 when converting an integer to an integer.
2005-08-02 Richard Henderson <rth@redhat.com>
* combine.c (combine_instructions): Don't use reg_equal/equiv

View File

@ -454,7 +454,7 @@ convert_to_integer (tree type, tree expr)
else
code = NOP_EXPR;
return build1 (code, type, expr);
return fold_build1 (code, type, expr);
}
/* If TYPE is an enumeral type or a type with a precision less