public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] rust-lang: Don't fold convert_to expressions
@ 2022-12-09  9:29 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-12-09  9:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a2ae23a9f2703519ab0e0709ca9785005c1ed872

commit a2ae23a9f2703519ab0e0709ca9785005c1ed872
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Thu Nov 17 13:42:47 2022 +0100

    rust-lang: Don't fold convert_to expressions

Diff:
---
 gcc/rust/rust-lang.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc
index 34778c8a80a..d69f283c2f8 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;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-09  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09  9:29 [gcc/devel/rust/master] rust-lang: Don't fold convert_to expressions Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).