Commit 90310d36 by Richard Guenther Committed by Richard Biener

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
parent 262e7125
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>
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment