From: Ilya Enkovich Date: Thu, 14 Aug 2014 08:46:44 +0000 (+0000) Subject: ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of current_function_decl. X-Git-Tag: releases/gcc-5.1.0~5503 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e857bbfab108081804d295065bd244f46996c57;p=thirdparty%2Fgcc.git ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of current_function_decl. gcc/ * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of current_function_decl. From-SVN: r213947 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52e7d5e9c10c..b821fd49791e 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 3650b43e8a12..0f38655382d7 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