Commit d2640c43 by Jan Hubicka Committed by Jan Hubicka

* ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.

From-SVN: r175021
parent de38eefa
2011-06-13 Jan Hubicka <jh@suse.cz>
* ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2011-06-14 Richard Henderson <rth@redhat.com> 2011-06-14 Richard Henderson <rth@redhat.com>
PR debug/48459 PR debug/48459
......
...@@ -543,14 +543,15 @@ cgraph_address_taken_from_non_vtable_p (struct cgraph_node *node) ...@@ -543,14 +543,15 @@ cgraph_address_taken_from_non_vtable_p (struct cgraph_node *node)
int i; int i;
struct ipa_ref *ref; struct ipa_ref *ref;
for (i = 0; ipa_ref_list_reference_iterate (&node->ref_list, i, ref); i++) for (i = 0; ipa_ref_list_reference_iterate (&node->ref_list, i, ref); i++)
{ if (ref->use == IPA_REF_ADDR)
struct varpool_node *node; {
if (ref->refered_type == IPA_REF_CGRAPH) struct varpool_node *node;
return true; if (ref->refered_type == IPA_REF_CGRAPH)
node = ipa_ref_varpool_node (ref); return true;
if (!DECL_VIRTUAL_P (node->decl)) node = ipa_ref_varpool_node (ref);
return true; if (!DECL_VIRTUAL_P (node->decl))
} return true;
}
return false; return false;
} }
......
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