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
This commit is contained in:
Ilya Enkovich 2014-08-14 08:46:44 +00:00 committed by Kirill Yukhin
parent 1113596f06
commit 8e857bbfab
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
* ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
current_function_decl.
2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
* cgraph.c (cgraph_node::function_symbol): Fix wrong

View File

@ -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