Skip to content

Commit 45dbc4e

Browse files
Use std::move to avoid copy
1 parent f87f3ad commit 45dbc4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3175,7 +3175,7 @@ void TreePattern::dump() const { print(errs()); }
31753175
CodeGenDAGPatterns::CodeGenDAGPatterns(const RecordKeeper &R,
31763176
PatternRewriterFn PatternRewriter)
31773177
: Records(R), Target(R), Intrinsics(R),
3178-
LegalVTS(Target.getLegalValueTypes()), PatternRewriter(PatternRewriter) {
3178+
LegalVTS(Target.getLegalValueTypes()), PatternRewriter(std::move(PatternRewriter)) {
31793179
ParseNodeInfo();
31803180
ParseNodeTransforms();
31813181
ParseComplexPatterns();

0 commit comments

Comments
 (0)