diff options
Diffstat (limited to 'llvm/unittests/ProfileData/InstrProfTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/InstrProfTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp index bb9f1c7a2f7..77c2e0cebdf 100644 --- a/llvm/unittests/ProfileData/InstrProfTest.cpp +++ b/llvm/unittests/ProfileData/InstrProfTest.cpp @@ -642,8 +642,10 @@ TEST_F(InstrProfTest, instr_prof_symtab_module_test) { Function *F = M->getFunction(Funcs[I]); ASSERT_TRUE(F != NULL); std::string PGOName = getPGOFuncName(*F); + uint64_t Key = IndexedInstrProf::ComputeHash(PGOName); ASSERT_EQ(StringRef(PGOName), - ProfSymtab.getFuncName(IndexedInstrProf::ComputeHash(PGOName))); + ProfSymtab.getFuncName(Key)); + ASSERT_EQ(StringRef(Funcs[I]), ProfSymtab.getOrigFuncName(Key)); } } |