aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-06-03 10:55:00 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-06-03 10:55:00 +0000
commitdb736800338fdbd22559d15dc7f781cbb30a8b44 (patch)
tree3f99c644619ff4c2b2e2938a7b71243ffc225b1a /gcc/tree-ssa-structalias.c
parentf9ac6b1e102134cd6c651269e01bfec48b8e80ec (diff)
downloadgcc-db736800338fdbd22559d15dc7f781cbb30a8b44.zip
gcc-db736800338fdbd22559d15dc7f781cbb30a8b44.tar.gz
gcc-db736800338fdbd22559d15dc7f781cbb30a8b44.tar.bz2
tree-ssa-structalias.c (find_func_aliases): Add constraints for the lhs of calls if the return type contains pointers.
2008-06-03 Richard Guenther <rguenther@suse.de> * tree-ssa-structalias.c (find_func_aliases): Add constraints for the lhs of calls if the return type contains pointers. From-SVN: r136315
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index b6d73ce..0e42214 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -3726,7 +3726,7 @@ find_func_aliases (tree origt)
if (TREE_CODE (t) == GIMPLE_MODIFY_STMT)
{
handle_rhs_call (GIMPLE_STMT_OPERAND (t, 1));
- if (POINTER_TYPE_P (TREE_TYPE (GIMPLE_STMT_OPERAND (t, 1))))
+ if (could_have_pointers (GIMPLE_STMT_OPERAND (t, 1)))
handle_lhs_call (GIMPLE_STMT_OPERAND (t, 0));
}
else