1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Fix a bug in test

llvm-svn: 258276
This commit is contained in:
Xinliang David Li 2016-01-20 02:49:53 +00:00
parent de5c9a8723
commit 67f63b17f1

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