Skip to content

Commit eab5d33

Browse files
[BOLT] Use llvm::erase_if (NFC)
1 parent f3cfd38 commit eab5d33

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bolt/lib/Core/HashUtilities.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ std::string hashBlockLoose(BinaryContext &BC, const BinaryBasicBlock &BB) {
155155
}
156156

157157
std::string Mnemonic = BC.InstPrinter->getMnemonic(&Inst).first;
158-
Mnemonic.erase(
159-
std::remove_if(Mnemonic.begin(), Mnemonic.end(),
160-
[](unsigned char ch) { return std::isspace(ch); }),
161-
Mnemonic.end());
158+
llvm::erase_if(Mnemonic, [](unsigned char ch) { return std::isspace(ch); });
162159
Opcodes.insert(Mnemonic);
163160
}
164161

0 commit comments

Comments
 (0)