projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adf4142
)
[ProfileData] Use llvm::erase_if (NFC)
author
Kazu Hirata
<kazu@google.com>
Sat, 11 Jun 2022 05:51:30 +0000
(22:51 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sat, 11 Jun 2022 05:51:30 +0000
(22:51 -0700)
llvm/lib/ProfileData/RawMemProfReader.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/ProfileData/RawMemProfReader.cpp
b/llvm/lib/ProfileData/RawMemProfReader.cpp
index
2c9977c
..
9165bc2
100644
(file)
--- a/
llvm/lib/ProfileData/RawMemProfReader.cpp
+++ b/
llvm/lib/ProfileData/RawMemProfReader.cpp
@@
-424,11
+424,9
@@
Error RawMemProfReader::symbolizeAndFilterStackFrames() {
}
auto &CallStack = Entry.getSecond();
- CallStack.erase(std::remove_if(CallStack.begin(), CallStack.end(),
- [&AllVAddrsToDiscard](const uint64_t A) {
- return AllVAddrsToDiscard.contains(A);
- }),
- CallStack.end());
+ llvm::erase_if(CallStack, [&AllVAddrsToDiscard](const uint64_t A) {
+ return AllVAddrsToDiscard.contains(A);
+ });
if (CallStack.empty())
EntriesToErase.push_back(Entry.getFirst());
}