diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-11-17 13:42:47 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-12-06 16:13:21 +0100 |
commit | a2ae23a9f2703519ab0e0709ca9785005c1ed872 (patch) | |
tree | c69c5762cdc586be84807bda6465927164331b4d /gcc | |
parent | a6285cf21959e806066edd8984caddc23fea2fce (diff) | |
download | gcc-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.cc | 8 |
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; } |