Use std::move to avoid copy (#113055)

This commit is contained in:
abhishek-kaushik22
2024-11-04 23:28:00 +08:00
committed by GitHub
parent 5d7afd324a
commit a58c3d3ac7

View File

@@ -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();
}