[llvm] 50f3050 - [ORC] Silence copy elision warning.
Sunho Kim via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 12 22:17:50 PDT 2022
Author: Sunho Kim
Date: 2022-08-13T14:17:43+09:00
New Revision: 50f305017df99a870259ab0254f8259b7d5b0f11
URL: https://github.com/llvm/llvm-project/commit/50f305017df99a870259ab0254f8259b7d5b0f11
DIFF: https://github.com/llvm/llvm-project/commit/50f305017df99a870259ab0254f8259b7d5b0f11.diff
LOG: [ORC] Silence copy elision warning.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
index 920109d3d61d..d3ebc72030d3 100644
--- a/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
@@ -328,7 +328,7 @@ COFFPlatform::COFFPlatform(
auto VCRT =
COFFVCRuntimeBootstrapper::Create(ES, ObjLinkingLayer, VCRuntimePath);
if (!VCRT) {
- Err = std::move(VCRT.takeError());
+ Err = VCRT.takeError();
return;
}
VCRuntimeBootstrap = std::move(*VCRT);
More information about the llvm-commits
mailing list