diff options
-rw-r--r-- | llvm/unittests/ProfileData/InstrProfTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp index 54a13e44b0a..ef79d51ede5 100644 --- a/llvm/unittests/ProfileData/InstrProfTest.cpp +++ b/llvm/unittests/ProfileData/InstrProfTest.cpp @@ -688,8 +688,8 @@ TEST_F(InstrProfTest, instr_prof_symtab_module_test) { for (unsigned I = 0; I < sizeof(Funcs) / sizeof(*Funcs); I++) { Function *F = M->getFunction(Funcs[I]); ASSERT_TRUE(F != NULL); - StringRef PGOName = getPGOFuncName(*F); - ASSERT_EQ(PGOName, + std::string PGOName = getPGOFuncName(*F); + ASSERT_EQ(StringRef(PGOName), ProfSymtab.getFuncName(IndexedInstrProf::ComputeHash(PGOName))); } } |