]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove a sanity check comment now that the sanity check has been removed
authorVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 14 May 2025 13:39:09 +0000 (16:39 +0300)
committerVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 14 May 2025 13:42:02 +0000 (16:42 +0300)
gcc/cp/ChangeLog:

* cp-gimplify.cc (cp_fold): Remove a remnant comment.

gcc/cp/cp-gimplify.cc

index 4e5d383daeb6e3928053e057ebac5cac902688d3..eab55504b050dd3fef7b57b2c017bf762e440af7 100644 (file)
@@ -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);