[llvm] Use `std::move` to avoid copy (PR #113055)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 19 10:55:31 PDT 2024
https://github.com/abhishek-kaushik22 updated https://github.com/llvm/llvm-project/pull/113055
>From f6605897e65b6c7d63587fef5d48a546efa4751f Mon Sep 17 00:00:00 2001
From: abhishek-kaushik22 <abhishek.kaushik at intel.com>
Date: Sat, 19 Oct 2024 22:48:18 +0530
Subject: [PATCH] Use `std::move` to avoid copy
---
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 5de5dd894f84ec..15ec7e17130de4 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();
}
More information about the llvm-commits
mailing list