alias.c (get_alias_set): For INDIRECT_REFs, deal with SSA_NAME pointers.

2007-10-23  Richard Guenther  <rguenther@suse.de>

	* alias.c (get_alias_set): For INDIRECT_REFs, deal with
	SSA_NAME pointers.

From-SVN: r129577
This commit is contained in:
Richard Guenther 2007-10-23 11:20:56 +00:00 committed by Richard Biener
parent 262e7125e7
commit 90310d368f
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-10-23 Richard Guenther <rguenther@suse.de>
* alias.c (get_alias_set): For INDIRECT_REFs, deal with
SSA_NAME pointers.
2007-10-22 Seongbae Park <seongbae.park@gmail.com>
David S. Miller <davem@davemloft.net>

View File

@ -525,7 +525,12 @@ get_alias_set (tree t)
/* Check for accesses through restrict-qualified pointers. */
if (INDIRECT_REF_P (inner))
{
tree decl = find_base_decl (TREE_OPERAND (inner, 0));
tree decl;
if (TREE_CODE (TREE_OPERAND (inner, 0)) == SSA_NAME)
decl = SSA_NAME_VAR (TREE_OPERAND (inner, 0));
else
decl = find_base_decl (TREE_OPERAND (inner, 0));
if (decl && DECL_POINTER_ALIAS_SET_KNOWN_P (decl))
{