Skip to content

Commit a58c3d3

Browse files
Use std::move to avoid copy (#113055)
1 parent 5d7afd3 commit a58c3d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ Error RuleMatcher::defineComplexSubOperand(StringRef SymbolicName,
842842

843843
ComplexSubOperands[SymbolicName] =
844844
std::tuple(ComplexPattern, RendererID, SubOperandID);
845-
ComplexSubOperandsParentName[SymbolicName] = ParentName;
845+
ComplexSubOperandsParentName[SymbolicName] = std::move(ParentName);
846846

847847
return Error::success();
848848
}

0 commit comments

Comments
 (0)