]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of current_function_decl.
authorIlya Enkovich <ilya.enkovich@intel.com>
Thu, 14 Aug 2014 08:46:44 +0000 (08:46 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Thu, 14 Aug 2014 08:46:44 +0000 (08:46 +0000)
gcc/
* ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
current_function_decl.

From-SVN: r213947

gcc/ChangeLog
gcc/ipa-devirt.c

index 52e7d5e9c10cf76925538c088faa38d13c30d3f0..b821fd49791e4f8492313806b8e68a3ce7d297c7 100644 (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
index 3650b43e8a123211d9e41961110add708c4b7eae..0f38655382d74848d28192c8ce83d4f23bf911f6 100644 (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