https://gcc.gnu.org/g:871099ae65a4f528496c7550331364866f9806bb

commit r16-621-g871099ae65a4f528496c7550331364866f9806bb
Author: Ville Voutilainen <ville.voutilai...@gmail.com>
Date:   Wed May 14 16:39:09 2025 +0300

    Remove a sanity check comment now that the sanity check has been removed
    
    gcc/cp/ChangeLog:
    
            * cp-gimplify.cc (cp_fold): Remove a remnant comment.

Diff:
---
 gcc/cp/cp-gimplify.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gcc/cp/cp-gimplify.cc b/gcc/cp/cp-gimplify.cc
index 4e5d383daeb6..eab55504b050 100644
--- a/gcc/cp/cp-gimplify.cc
+++ b/gcc/cp/cp-gimplify.cc
@@ -3347,8 +3347,6 @@ cp_fold (tree x, fold_flags_t flags)
                || id_equal (DECL_NAME (callee), "as_const")))
          {
            r = CALL_EXPR_ARG (x, 0);
-           /* Check that the return and argument types are sane before
-              folding.  */
            if (!same_type_p (TREE_TYPE (x), TREE_TYPE (r)))
              r = build_nop (TREE_TYPE (x), r);
            x = cp_fold (r, flags);

Reply via email to