[llvm] 53bb183 - Orc: Remove redundant std::move

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 10:11:31 PST 2020


Author: David Blaikie
Date: 2020-01-31T10:11:24-08:00
New Revision: 53bb183a9d0b00261194a57aead7926b3fbc396c

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

LOG: Orc: Remove redundant std::move

Added: 
    

Modified: 
    llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
index 7d9dd0482def..be68133da1a4 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
@@ -406,7 +406,7 @@ class LegacyCompileOnDemandLayer {
           if (auto Sym = LD.findSymbol(BaseLayer, MangledName, false))
             continue;
           else if (auto Err = Sym.takeError())
-            return std::move(Err);
+            return Err;
         }
 
         // Record all functions defined by this module.


        


More information about the llvm-commits mailing list