From: Sunho Kim Date: Thu, 11 Aug 2022 06:40:47 +0000 (+0900) Subject: [ORC] Add missing std::move. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28131517301c050d2292affac6fbbdb9cf9a46fe;p=platform%2Fupstream%2Fllvm.git [ORC] Add missing std::move. --- diff --git a/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp b/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp index f5be80c..3c355cc 100644 --- a/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp +++ b/llvm/lib/ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp @@ -43,7 +43,7 @@ COFFVCRuntimeBootstrapper::loadStaticVCRuntime(JITDylib &JD, std::vector ImportedLibraries; if (auto Err = loadVCRuntime(JD, ImportedLibraries, makeArrayRef(VCLibs), makeArrayRef(UCRTLibs))) - return Err; + return std::move(Err); return ImportedLibraries; } @@ -55,7 +55,7 @@ COFFVCRuntimeBootstrapper::loadDynamicVCRuntime(JITDylib &JD, std::vector ImportedLibraries; if (auto Err = loadVCRuntime(JD, ImportedLibraries, makeArrayRef(VCLibs), makeArrayRef(UCRTLibs))) - return Err; + return std::move(Err); return ImportedLibraries; }