[ORC] Silence copy elision warning.
authorSunho Kim <ksunhokim123@gmail.com>
Sat, 13 Aug 2022 05:17:18 +0000 (14:17 +0900)
committerSunho Kim <ksunhokim123@gmail.com>
Sat, 13 Aug 2022 05:17:43 +0000 (14:17 +0900)
llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp

index 920109d..d3ebc72 100644 (file)
@@ -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);