[llvm] d5ae7a9 - [ORC] Fix another missing std::move from 9eb4939b862.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 19 22:59:20 PST 2022


Author: Lang Hames
Date: 2022-01-20T17:58:37+11:00
New Revision: d5ae7a99d1e84014f20f444406f4bc0bfba9e064

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

LOG: [ORC] Fix another missing std::move from 9eb4939b862.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index 28c7fce06555..91949c9d7eeb 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -350,7 +350,7 @@ class GenericLLVMIRPlatformSupport : public LLJIT::PlatformSupport {
           }
           return Error::success();
         }))
-      return Err;
+      return std::move(Err);
 
     LLVM_DEBUG({
       dbgs() << "JITDylib deinit order is [ ";


        


More information about the llvm-commits mailing list