Skip to content

Commit b33c211

Browse files
[TableGen] Use llvm::erase_value (NFC)
1 parent 4ba9d9c commit b33c211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/TableGen/Dialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ StringRef Dialect::getCppNamespace() const {
3232
std::string Dialect::getCppClassName() const {
3333
// Simply use the name and remove any '_' tokens.
3434
std::string cppName = def->getName().str();
35-
llvm::erase_if(cppName, [](char c) { return c == '_'; });
35+
llvm::erase_value(cppName, '_');
3636
return cppName;
3737
}
3838

0 commit comments

Comments
 (0)