diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-24 06:13:44 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-24 06:13:44 +0000 |
commit | 1fda15e2319ade173bbcfcee7a5272bc410ef17d (patch) | |
tree | be52c0776019c9e0eed372c7670a1d87ad3d6732 /gcc/cgraphunit.c | |
parent | 6ffeceb15bc17d43de07000e1806690a9b6c3c68 (diff) | |
download | gcc-1fda15e2319ade173bbcfcee7a5272bc410ef17d.tar.gz |
* ipa-utils.h (method_class_type): Remove.
* cgraphunit.c (walk_polymorphic_call_targets): Use TYPE_METHOD_BASETYPE.
* ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
on main variants only.
(method_class_type): Remove.
(update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
(build_type_inheritance_graph): Likewise.
* ipa-icf.c (sem_function::equals_wpa): Likewise.
* pa-polymorphic-call.c (decl_maybe_in_construction_p,
check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 757f03d281b..8d97163cf99 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -866,9 +866,8 @@ walk_polymorphic_call_targets (hash_set<void *> *reachable_call_targets, (TREE_TYPE (targets[i]->decl)) == METHOD_TYPE && !type_in_anonymous_namespace_p - (method_class_type - (TREE_TYPE (targets[i]->decl)))) - enqueue_node (targets[i]); + (TYPE_METHOD_BASETYPE (TREE_TYPE (targets[i]->decl)))) + enqueue_node (targets[i]); } } |