Use std::move to avoid copy (#113055)
This commit is contained in:
committed by
GitHub
parent
5d7afd324a
commit
a58c3d3ac7
@@ -842,7 +842,7 @@ Error RuleMatcher::defineComplexSubOperand(StringRef SymbolicName,
|
||||
|
||||
ComplexSubOperands[SymbolicName] =
|
||||
std::tuple(ComplexPattern, RendererID, SubOperandID);
|
||||
ComplexSubOperandsParentName[SymbolicName] = ParentName;
|
||||
ComplexSubOperandsParentName[SymbolicName] = std::move(ParentName);
|
||||
|
||||
return Error::success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user