aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-10-22 17:40:29 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-10-22 17:40:29 +0000
commit51c869cac9a2b641ee21172ea193eadef9b1f476 (patch)
treea8b70739be04da68b2f0658cded9a97e965873d3 /gcc/tree-ssa-structalias.c
parenta7da8b427fa7de6a459a0a3b33eca9de953aea62 (diff)
downloadgcc-51c869cac9a2b641ee21172ea193eadef9b1f476.zip
gcc-51c869cac9a2b641ee21172ea193eadef9b1f476.tar.gz
gcc-51c869cac9a2b641ee21172ea193eadef9b1f476.tar.bz2
tree.def (COMPLEX_TYPE): Constrain element type.
2008-10-22 Richard Guenther <rguenther@suse.de> * tree.def (COMPLEX_TYPE): Constrain element type. * tree.c (build_complex_type): Assert that. * tree-ssa-structalias.c (could_have_pointers): Complex types cannot have pointers. From-SVN: r141299
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 6db8298..11427ec 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -2765,8 +2765,7 @@ could_have_pointers (tree t)
tree type = TREE_TYPE (t);
if (POINTER_TYPE_P (type)
- || AGGREGATE_TYPE_P (type)
- || TREE_CODE (type) == COMPLEX_TYPE)
+ || AGGREGATE_TYPE_P (type))
return true;
return false;