public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Matthew Malcomson <matmal01@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/ARM/heads/morello)] cp: Another capability comparison fix
Date: Mon, 14 Mar 2022 10:35:37 +0000 (GMT)	[thread overview]
Message-ID: <20220314103537.A433A3853816@sourceware.org> (raw)

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

commit e2ba32c33614c7f7998c5d70f1a4dc006ea66421
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Thu Feb 10 15:06:40 2022 +0000

    cp: Another capability comparison fix
    
    gcc/cp/ChangeLog:
    
            * init.c (build_vec_delete_1): Compare address values, not
            capabilities.

Diff:
---
 gcc/cp/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index adfb772ef44..c83ec67d561 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -4033,8 +4033,8 @@ build_vec_delete_1 (location_t loc, tree base, tree maxindex, tree type,
   TREE_SIDE_EFFECTS (controller) = 1;
 
   body = build1 (EXIT_EXPR, void_type_node,
-		 build2 (EQ_EXPR, boolean_type_node, tbase,
-			 fold_convert (ptype, base)));
+		 build2 (EQ_EXPR, boolean_type_node, drop_capability (tbase),
+			 fold_convert (noncapability_type (ptype), base)));
   tmp = fold_build1_loc (loc, NEGATE_EXPR, sizetype, size_exp);
   tmp = fold_build_pointer_plus (tbase, tmp);
   tmp = cp_build_modify_expr (loc, tbase, NOP_EXPR, tmp, complain);


                 reply	other threads:[~2022-03-14 10:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220314103537.A433A3853816@sourceware.org \
    --to=matmal01@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).