aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-09-15 01:18:01 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-09-14 18:18:01 -0700
commit5ffcd77909762ca7091b915aef658f28c635ed36 (patch)
treec63fef83707b3e5ee663fc4a4f4e20245a0d7801 /gcc/tree-ssa-copy.c
parent798e5365d456e7eff966c7d107a64a6ca9eee8e8 (diff)
downloadgcc-5ffcd77909762ca7091b915aef658f28c635ed36.zip
gcc-5ffcd77909762ca7091b915aef658f28c635ed36.tar.gz
gcc-5ffcd77909762ca7091b915aef658f28c635ed36.tar.bz2
pointer-reference-alias.C: New test.
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. From-SVN: r87527
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 7b27c68..611bae7 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;
}