Fix a bug in test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258276 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Xinliang David Li 2016-01-20 02:49:53 +00:00
parent 14e824a6a8
commit 728b07f28e

View File

@ -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)));
}
}