summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-03 04:37:38 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-03 04:37:38 +0000
commitcc97f64c3258f131bb4939f57f38253958914b3a (patch)
treee379b5eabc9bf55eb7f7ae1d18c7fafa6985044b /gcc/convert.c
parent43a62db5b58fe5cbe4cfabb4a5062175ae7b8f4c (diff)
downloadgcc-cc97f64c3258f131bb4939f57f38253958914b3a.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index e3a94783f04..90793320930 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -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