From c2af9e570b0e957fcaaaeb20d79188e14d0cd1b1 Mon Sep 17 00:00:00 2001 From: rguenth Date: Tue, 25 Jan 2011 09:55:54 +0000 Subject: 2011-01-25 Richard Guenther PR middle-end/47414 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the correct type for TBAA. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169223 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-alias.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 25e2bc4e30e..01211edec48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-01-25 Richard Guenther + + PR middle-end/47414 + * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the + correct type for TBAA. + 2011-01-25 Sebastian Pop * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New. diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 3f6fec1574a..78275dec857 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -808,7 +808,8 @@ indirect_ref_may_alias_decl_p (tree ref1 ATTRIBUTE_UNUSED, tree base1, return aliasing_component_refs_p (ref1, TREE_TYPE (ptrtype1), ref1_alias_set, base1_alias_set, offset1, max_size1, - ref2, TREE_TYPE (base2), + ref2, TREE_TYPE + (reference_alias_ptr_type (ref2)), ref2_alias_set, base2_alias_set, offset2, max_size2, true); -- cgit v1.2.1