[llvm] 63d0932 - [ORC] Fix a missing move.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 14:28:09 PST 2020


Author: Lang Hames
Date: 2020-02-19T14:27:31-08:00
New Revision: 63d0932c358012bcfc1a87f78a5f05bafc2dc86d

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

LOG: [ORC] Fix a missing move.

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 5b2f86823355..3db081007a82 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -448,7 +448,7 @@ GlobalCtorDtorScraper::operator()(ThreadSafeModule TSM,
   if (Err)
     return std::move(Err);
 
-  return TSM;
+  return std::move(TSM);
 }
 
 class MachOPlatformSupport : public LLJIT::PlatformSupport {


        


More information about the llvm-commits mailing list