[JITLink] Add missing moves from 43acef48d38e.
authorLang Hames <lhames@gmail.com>
Fri, 15 Apr 2022 19:57:19 +0000 (12:57 -0700)
committerLang Hames <lhames@gmail.com>
Fri, 15 Apr 2022 19:58:22 +0000 (12:58 -0700)
llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp

index 9427b93..6770239 100644 (file)
@@ -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;
     }
   }