summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ProfileData
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-20 02:49:53 +0000
committerXinliang David Li <davidxl@google.com>2016-01-20 02:49:53 +0000
commitda656fe50e98a0d521cfa1718652701fcf0ae25d (patch)
tree75187cb07d906de4a84106dc5af5eea8ad4eb7a7 /llvm/unittests/ProfileData
parent0b9df44cf1ed99114178eb61a186118afc12cee9 (diff)
downloadbcm5719-llvm-da656fe50e98a0d521cfa1718652701fcf0ae25d.tar.gz
bcm5719-llvm-da656fe50e98a0d521cfa1718652701fcf0ae25d.zip
Fix a bug in test
llvm-svn: 258276
Diffstat (limited to 'llvm/unittests/ProfileData')
-rw-r--r--llvm/unittests/ProfileData/InstrProfTest.cpp4
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)));
}
}
OpenPOWER on IntegriCloud