Skip to content

Commit

Permalink
[ProfileData] Use llvm::erase_if (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Jun 11, 2022
1 parent adf4142 commit c2713df
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions llvm/lib/ProfileData/RawMemProfReader.cpp
Expand Up @@ -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());
}
Expand Down

0 comments on commit c2713df

Please sign in to comment.