This needs to be added to r16-775-g18df4a10bc9694 if/when that is
backported to GCC-15.
Tested on powerpc64le-linux, x86_64-darwin, pushed to trunk as
trivial/obvious, thanks
Iain

--- 8< ---

These were typoed to TRUTH_AND_EXPR (and then that got copied).

gcc/cp/ChangeLog:

        * coroutines.cc (cp_coroutine_transform::build_ramp_function):
        Replace TRUTH_AND_EXPR with TRUTH_ANDIF_EXPR in three places.

Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>
---
 gcc/cp/coroutines.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index a6209962228..b1e555cb336 100644
--- a/gcc/cp/coroutines.cc
+++ b/gcc/cp/coroutines.cc
@@ -4944,7 +4944,7 @@ cp_coroutine_transform::build_ramp_function ()
       tree frame_cleanup = push_stmt_list ();
       tree do_fr_cleanup
        = build1_loc (loc, TRUTH_NOT_EXPR, boolean_type_node, iarc_x);
-      do_fr_cleanup = build2_loc (loc, TRUTH_AND_EXPR, boolean_type_node,
+      do_fr_cleanup = build2_loc (loc, TRUTH_ANDIF_EXPR, boolean_type_node,
                                  coro_before_return, do_fr_cleanup);
       r = build3 (COND_EXPR, void_type_node, do_fr_cleanup,
                             delete_frame_call, void_node);
@@ -5036,7 +5036,7 @@ cp_coroutine_transform::build_ramp_function ()
                  tree do_cleanup
                    = build1_loc (loc, TRUTH_NOT_EXPR, boolean_type_node, 
iarc_x);
                  do_cleanup
-                   = build2_loc (loc, TRUTH_AND_EXPR, boolean_type_node,
+                   = build2_loc (loc, TRUTH_ANDIF_EXPR, boolean_type_node,
                                  coro_before_return, do_cleanup);
                  r = build3_loc (loc, COND_EXPR, void_type_node, do_cleanup,
                                  parm.fr_copy_dtor, void_node);
@@ -5096,7 +5096,7 @@ cp_coroutine_transform::build_ramp_function ()
          tree promise_cleanup = push_stmt_list ();
          tree do_cleanup
            = build1_loc (loc, TRUTH_NOT_EXPR, boolean_type_node, iarc_x);
-         do_cleanup = build2_loc (loc, TRUTH_AND_EXPR, boolean_type_node,
+         do_cleanup = build2_loc (loc, TRUTH_ANDIF_EXPR, boolean_type_node,
                                   coro_before_return, do_cleanup);
          r = build3 (COND_EXPR, void_type_node, do_cleanup,
                      promise_dtor, void_node);
-- 
2.39.2 (Apple Git-143)

Reply via email to