Skip to content

Commit 90eff5f

Browse files
committed
No need of explicit Twine constructor
1 parent 7662cdc commit 90eff5f

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)