[llvm] 249510a - [ORC] Add missing std::move.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 03:38:07 PDT 2021


Author: Lang Hames
Date: 2021-07-19T20:37:53+10:00
New Revision: 249510a004c84f3af7c084ef4bfbed6f6a584127

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

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

This should fix the build failure at
https://lab.llvm.org/buildbot/#/builders/58/builds/11428.

Added: 
    

Modified: 
    llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
index ec91597bc352..301fecb94acb 100644
--- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
+++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
@@ -866,7 +866,7 @@ Expected<std::unique_ptr<Session>> Session::Create(Triple TT) {
   // FIXME: Errors destroy the session, leaving the SymbolStringPtrs dangling,
   // so just exit here. We could fix this by having errors keep the pool alive.
   ExitOnErr(std::move(Err));
-  return S;
+  return std::move(S);
 }
 
 Session::~Session() {


        


More information about the llvm-commits mailing list