aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/TableGen/Dialect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/TableGen/Dialect.cpp')
-rw-r--r--mlir/lib/TableGen/Dialect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/TableGen/Dialect.cpp b/mlir/lib/TableGen/Dialect.cpp
index 7b5e89a7e6c9..ed775d236f11 100644
--- a/mlir/lib/TableGen/Dialect.cpp
+++ b/mlir/lib/TableGen/Dialect.cpp
@@ -32,7 +32,7 @@ StringRef Dialect::getCppNamespace() const {
std::string Dialect::getCppClassName() const {
// Simply use the name and remove any '_' tokens.
std::string cppName = def->getName().str();
- llvm::erase_if(cppName, [](char c) { return c == '_'; });
+ llvm::erase_value(cppName, '_');
return cppName;
}