aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-06-27 22:01:44 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-06-27 20:01:44 +0000
commit310e71a8b8411bd1faf73d6f2513b6797dad5ad4 (patch)
tree947f4000a8c71cf8382efcf9eaf56763a0deb198 /gcc/ipa.c
parent171da07afca69d2d89e0fd4e645f3fa6e49bf530 (diff)
downloadgcc-310e71a8b8411bd1faf73d6f2513b6797dad5ad4.zip
gcc-310e71a8b8411bd1faf73d6f2513b6797dad5ad4.tar.gz
gcc-310e71a8b8411bd1faf73d6f2513b6797dad5ad4.tar.bz2
ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node instead of references in node.
* ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of node instead of references in node. From-SVN: r175555
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 260cc26..5b09250 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -542,13 +542,13 @@ cgraph_address_taken_from_non_vtable_p (struct cgraph_node *node)
{
int i;
struct ipa_ref *ref;
- for (i = 0; ipa_ref_list_reference_iterate (&node->ref_list, i, ref); i++)
+ for (i = 0; ipa_ref_list_refering_iterate (&node->ref_list, i, ref); i++)
if (ref->use == IPA_REF_ADDR)
{
struct varpool_node *node;
- if (ref->refered_type == IPA_REF_CGRAPH)
+ if (ref->refering_type == IPA_REF_CGRAPH)
return true;
- node = ipa_ref_varpool_node (ref);
+ node = ipa_ref_refering_varpool_node (ref);
if (!DECL_VIRTUAL_P (node->decl))
return true;
}