[llvm] 2813151 - [ORC] Add missing std::move.

Sunho Kim via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 23:41:15 PDT 2022


Author: Sunho Kim
Date: 2022-08-11T15:41:06+09:00
New Revision: 28131517301c050d2292affac6fbbdb9cf9a46fe

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

LOG: [ORC] Add missing std::move.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp b/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp
index f5be80c4affe..3c355cc223f9 100644
--- a/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp
@@ -43,7 +43,7 @@ COFFVCRuntimeBootstrapper::loadStaticVCRuntime(JITDylib &JD,
   std::vector<std::string> ImportedLibraries;
   if (auto Err = loadVCRuntime(JD, ImportedLibraries, makeArrayRef(VCLibs),
                                makeArrayRef(UCRTLibs)))
-    return Err;
+    return std::move(Err);
   return ImportedLibraries;
 }
 
@@ -55,7 +55,7 @@ COFFVCRuntimeBootstrapper::loadDynamicVCRuntime(JITDylib &JD,
   std::vector<std::string> ImportedLibraries;
   if (auto Err = loadVCRuntime(JD, ImportedLibraries, makeArrayRef(VCLibs),
                                makeArrayRef(UCRTLibs)))
-    return Err;
+    return std::move(Err);
   return ImportedLibraries;
 }
 


        


More information about the llvm-commits mailing list