aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-11-17 13:42:47 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-12-06 16:13:21 +0100
commita2ae23a9f2703519ab0e0709ca9785005c1ed872 (patch)
treec69c5762cdc586be84807bda6465927164331b4d /gcc
parenta6285cf21959e806066edd8984caddc23fea2fce (diff)
downloadgcc-a2ae23a9f2703519ab0e0709ca9785005c1ed872.zip
gcc-a2ae23a9f2703519ab0e0709ca9785005c1ed872.tar.gz
gcc-a2ae23a9f2703519ab0e0709ca9785005c1ed872.tar.bz2
rust-lang: Don't fold convert_to expressions
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-lang.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index 34778c8..d69f283 100644
--- a/gcc/rust/rust-lang.cc
+++ b/gcc/rust/rust-lang.cc
@@ -355,13 +355,13 @@ convert (tree type, tree expr)
case BOOLEAN_TYPE:
return fold_convert (type, expr);
case INTEGER_TYPE:
- return fold (convert_to_integer (type, expr));
+ return convert_to_integer (type, expr);
case POINTER_TYPE:
- return fold (convert_to_pointer (type, expr));
+ return convert_to_pointer (type, expr);
case REAL_TYPE:
- return fold (convert_to_real (type, expr));
+ return convert_to_real (type, expr);
case COMPLEX_TYPE:
- return fold (convert_to_complex (type, expr));
+ return convert_to_complex (type, expr);
default:
break;
}