[llvm] e57ded4 - [ORC] Remove moves.

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 23:46:36 PDT 2022


Author: sunho
Date: 2022-09-10T15:46:11+09:00
New Revision: e57ded44d4990947193c20340fc09ba71eb55840

URL: https://github.com/llvm/llvm-project/commit/e57ded44d4990947193c20340fc09ba71eb55840
DIFF: https://github.com/llvm/llvm-project/commit/e57ded44d4990947193c20340fc09ba71eb55840.diff

LOG: [ORC] Remove moves.

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 30a51c107cf7..8bd9c294c4c9 100644
--- a/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
@@ -243,7 +243,7 @@ Error COFFPlatform::setupJITDylib(JITDylib &JD) {
   SymbolAliasMap CXXAliases;
   addAliases(ES, CXXAliases, requiredCXXAliases());
   if (auto Err = JD.define(symbolAliases(std::move(CXXAliases))))
-    return std::move(Err);
+    return Err;
 
   auto PerJDObj = getPerJDObjectFile();
   if (!PerJDObj)
@@ -364,7 +364,7 @@ COFFPlatform::COFFPlatform(ExecutionSession &ES,
   auto OrcRuntimeArchiveGenerator =
       StaticLibraryDefinitionGenerator::Load(ObjLinkingLayer, OrcRuntimePath);
   if (!OrcRuntimeArchiveGenerator) {
-    Err = std::move(OrcRuntimeArchiveGenerator.takeError());
+    Err = OrcRuntimeArchiveGenerator.takeError();
     return;
   }
 


        


More information about the llvm-commits mailing list