https://gcc.gnu.org/g:83aa09e90487b52c1772eeffc4af577ee70536f1

commit r16-913-g83aa09e90487b52c1772eeffc4af577ee70536f1
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Thu May 22 13:24:12 2025 +0100

    c++, coroutines: Fix typos in TRUTH_ANDIF_EXPRs.
    
    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>

Diff:
---
 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 a62099622288..b1e555cb3365 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);

Reply via email to