diff options
author | Ilya Enkovich <ilya.enkovich@intel.com> | 2014-08-14 08:46:44 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2014-08-14 08:46:44 +0000 |
commit | 8e857bbfab108081804d295065bd244f46996c57 (patch) | |
tree | a4f007a860915d128f14de1b1e0c3ff9ba83c5c4 | |
parent | 1113596f0677222c8b0ae2b67a2194236cbcab4a (diff) | |
download | gcc-8e857bbfab108081804d295065bd244f46996c57.zip gcc-8e857bbfab108081804d295065bd244f46996c57.tar.gz gcc-8e857bbfab108081804d295065bd244f46996c57.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-devirt.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52e7d5e9..b821fd4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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 cgraph_function_node to cgraph_node::function_symbol refactoring. diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index 3650b43..0f38655 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 |