[llvm] 067fadd - [JITLink][COFF] Add explicit std::move.
Sunho Kim via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 30 16:01:06 PDT 2022
Author: Sunho Kim
Date: 2022-07-31T08:01:00+09:00
New Revision: 067faddb55b94749d16b32679ce6b75fdb5f4b01
URL: https://github.com/llvm/llvm-project/commit/067faddb55b94749d16b32679ce6b75fdb5f4b01
DIFF: https://github.com/llvm/llvm-project/commit/067faddb55b94749d16b32679ce6b75fdb5f4b01.diff
LOG: [JITLink][COFF] Add explicit std::move.
Since ArgList is not copyable we need to make sure it's moved explicitly.
Added:
Modified:
llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp b/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp
index 0934f3418804..cc21279f7d0e 100644
--- a/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/COFFDirectiveParser.cpp
@@ -73,5 +73,5 @@ COFFDirectiveParser::parse(StringRef Str) {
dbgs() << "Unknown coff option argument: " << arg->getAsString(*Result)
<< "\n";
});
- return Result;
+ return std::move(Result);
}
More information about the llvm-commits
mailing list