diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52e7d5e9c10..b821fd49791 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-14 Ilya Enkovich + + * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of + current_function_decl. + 2014-08-14 Ilya Enkovich * cgraph.c (cgraph_node::function_symbol): Fix wrong diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 3650b43e8a1..0f38655382d 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -2319,7 +2319,7 @@ get_polymorphic_call_info (tree fndecl, = decl_maybe_in_construction_p (base, context->outer_type, call, - current_function_decl); + fndecl); return base; } else