Skip to content

Commit c9ecabd

Browse files
avoid copies
1 parent a807e8e commit c9ecabd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ void DefGen::emitCheckedBuilder() {
495495
MethodBody &body = m->body().indent();
496496
auto scope = body.scope("return Base::getChecked(emitError, context", ");");
497497
for (const auto &param : params)
498-
body << ", " << param.getName();
498+
body << ", std::move(" << param.getName() << ")";
499499
}
500500

501501
static SmallVector<MethodParameter>

0 commit comments

Comments
 (0)