diff options
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r-- | llvm/tools/llvm-profdata/llvm-profdata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index c235c3f..59f0f1f 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp @@ -1297,7 +1297,7 @@ adjustInstrProfile(std::unique_ptr<WriterContext> &WC, } else { auto NewName = StaticFuncMap.find(Name); if (NewName != StaticFuncMap.end()) { - It = InstrProfileMap.find(NewName->second.str()); + It = InstrProfileMap.find(NewName->second); if (NewName->second != DuplicateNameStr) { NewRootName = &NewName->second; } @@ -1382,7 +1382,7 @@ adjustInstrProfile(std::unique_ptr<WriterContext> &WC, if (It == InstrProfileMap.end()) { auto NewName = StaticFuncMap.find(Name); if (NewName != StaticFuncMap.end()) { - It = InstrProfileMap.find(NewName->second.str()); + It = InstrProfileMap.find(NewName->second); if (NewName->second == DuplicateNameStr) { WithColor::warning() << "Static function " << Name |