aboutsummaryrefslogtreecommitdiff
path: root/gcc/auto-profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/auto-profile.cc')
-rw-r--r--gcc/auto-profile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/auto-profile.cc b/gcc/auto-profile.cc
index 7e0e8c6..9966d93 100644
--- a/gcc/auto-profile.cc
+++ b/gcc/auto-profile.cc
@@ -848,8 +848,8 @@ autofdo_source_profile::get_callsite_total_count (
function_instance *s = get_function_instance_by_inline_stack (stack);
if (s == NULL
- || afdo_string_table->get_index (IDENTIFIER_POINTER (
- DECL_ASSEMBLER_NAME (edge->callee->decl))) != s->name ())
+ ||(afdo_string_table->get_index_by_decl (edge->callee->decl)
+ != s->name()))
return 0;
return s->total_count ();