public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] cp: Another capability comparison fix
@ 2022-03-14 10:35 Matthew Malcomson
  0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2022-03-14 10:35 UTC (permalink / raw)
  To: gcc-cvs

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-14 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-14 10:35 [gcc(refs/vendors/ARM/heads/morello)] cp: Another capability comparison fix Matthew Malcomson

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).