We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba9d9c commit b33c211Copy full SHA for b33c211
mlir/lib/TableGen/Dialect.cpp
@@ -32,7 +32,7 @@ StringRef Dialect::getCppNamespace() const {
32
std::string Dialect::getCppClassName() const {
33
// Simply use the name and remove any '_' tokens.
34
std::string cppName = def->getName().str();
35
- llvm::erase_if(cppName, [](char c) { return c == '_'; });
+ llvm::erase_value(cppName, '_');
36
return cppName;
37
}
38
0 commit comments