From 0d11351bd7ce21f2094858ae7a081896261077d8 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Fri, 15 Apr 2022 12:57:19 -0700 Subject: [PATCH] [JITLink] Add missing moves from 43acef48d38e. --- llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp b/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp index 9427b93..6770239 100644 --- a/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp +++ b/llvm/lib/ExecutionEngine/JITLink/EHFrameSupport.cpp @@ -446,7 +446,7 @@ Expected 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 EHFrameEdgeFixer::getOrCreateEncodedPointerEdge( dbgs() << "\n"; }); if (auto Err = skipEncodedPointer(PointerEncoding, RecordReader)) - return Err; + return std::move(Err); return EdgeI->second.Target; } } -- 2.7.4