From a58c3d3ac7c6b2fd9710ab2189d7971ef37e714f Mon Sep 17 00:00:00 2001 From: abhishek-kaushik22 Date: Mon, 4 Nov 2024 23:28:00 +0800 Subject: [PATCH] Use `std::move` to avoid copy (#113055) --- llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp index 5de5dd894f84..15ec7e17130d 100644 --- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp +++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp @@ -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(); }