Skip to content

Commit 5e067b2

Browse files
committed
No need of explicit Twine constructor
1 parent 2c8f2e6 commit 5e067b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/tools/mlir-tblgen/OpInterfacesGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,7 @@ void InterfaceGenerator::emitModelMethodsDef(const Interface &interface) {
442442
}
443443

444444
void InterfaceGenerator::emitInterfaceTraitDecl(const Interface &interface) {
445-
llvm::NamespaceEmitter ns(os,
446-
Twine(interface.getCppNamespace()) + "::detail");
445+
llvm::NamespaceEmitter ns(os, interface.getCppNamespace() + "::detail");
447446

448447
StringRef interfaceName = interface.getName();
449448
auto interfaceTraitsName = (interfaceName + "InterfaceTraits").str();

0 commit comments

Comments
 (0)