[llvm] 0d11351 - [JITLink] Add missing moves from 43acef48d38e.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 15 12:58:27 PDT 2022


Author: Lang Hames
Date: 2022-04-15T12:58:22-07:00
New Revision: 0d11351bd7ce21f2094858ae7a081896261077d8

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

LOG: [JITLink] Add missing moves from 43acef48d38e.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp b/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
index 9427b93acdd5e..6770239f93349 100644
--- a/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
@@ -446,7 +446,7 @@ Expected<uint8_t> EHFrameEdgeFixer::readPointerEncoding(BinaryStreamReader &R,
 
   uint8_t PointerEncoding;
   if (auto Err = R.readInteger(PointerEncoding))
-    return Err;
+    return std::move(Err);
 
   bool Supported = true;
   switch (PointerEncoding & 0xf) {
@@ -525,7 +525,7 @@ Expected<Symbol *> EHFrameEdgeFixer::getOrCreateEncodedPointerEdge(
         dbgs() << "\n";
       });
       if (auto Err = skipEncodedPointer(PointerEncoding, RecordReader))
-        return Err;
+        return std::move(Err);
       return EdgeI->second.Target;
     }
   }


        


More information about the llvm-commits mailing list