mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Fix a bug in test
llvm-svn: 258276
This commit is contained in:
parent
de5c9a8723
commit
67f63b17f1
@ -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)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user