Skip to content

Commit

Permalink
[BOLT] Use llvm::erase_if (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Oct 14, 2023
1 parent f3cfd38 commit eab5d33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bolt/lib/Core/HashUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,7 @@ std::string hashBlockLoose(BinaryContext &BC, const BinaryBasicBlock &BB) {
}

std::string Mnemonic = BC.InstPrinter->getMnemonic(&Inst).first;
Mnemonic.erase(
std::remove_if(Mnemonic.begin(), Mnemonic.end(),
[](unsigned char ch) { return std::isspace(ch); }),
Mnemonic.end());
llvm::erase_if(Mnemonic, [](unsigned char ch) { return std::isspace(ch); });
Opcodes.insert(Mnemonic);
}

Expand Down

0 comments on commit eab5d33

Please sign in to comment.