summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-15 01:18:01 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-15 01:18:01 +0000
commita702ac2f8cfe4b37e51e17fa519cab7ab39e3fd5 (patch)
treec63fef83707b3e5ee663fc4a4f4e20245a0d7801 /gcc/tree-ssa-copy.c
parent9a4547acd4070c19c0c2d99af654480e07ec2511 (diff)
downloadgcc-a702ac2f8cfe4b37e51e17fa519cab7ab39e3fd5.tar.gz
2004-09-14 Andrew Pinski <apinski@apple.com>
* g++.dg/tree-ssa/pointer-reference-alias.C: New test. 2004-09-14 Andrew Pinski <apinski@apple.com> * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing sets of the pointers but the aliasing sets of what they point to. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87527 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r--gcc/tree-ssa-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c
index 7b27c68b1bd..611bae77bad 100644
--- a/gcc/tree-ssa-copy.c
+++ b/gcc/tree-ssa-copy.c
@@ -112,8 +112,8 @@ may_propagate_copy (tree dest, tree orig)
return false;
else if (!lang_hooks.types_compatible_p (type_d, type_o))
return false;
- else if (!alias_sets_conflict_p (get_alias_set (type_d),
- get_alias_set (type_o)))
+ else if (!alias_sets_conflict_p (get_alias_set (TREE_TYPE (type_d)),
+ get_alias_set (TREE_TYPE (type_o))))
return false;
}