aboutsummaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index 97641cff051..bbb0db01178 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -450,8 +450,8 @@ convert_to_integer (tree type, tree expr)
/* Convert to an unsigned integer of the correct width first,
and from there widen/truncate to the required type. */
- expr = fold_build1 (CONVERT_EXPR,
- lang_hooks.types.type_for_size (POINTER_SIZE, 0),
+ expr = fold_build1 (NOP_EXPR,
+ lang_hooks.types.type_for_size (POINTER_SIZE, 1),
expr);
return fold_convert (type, expr);