[compiler-rt] ad4f047 - [ORC-RT] Fix missing std::move.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 04:04:54 PDT 2021


Author: Lang Hames
Date: 2021-07-19T21:03:12+10:00
New Revision: ad4f04773c3c364e87321f7e2957eaf9779063f2

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

LOG: [ORC-RT] Fix missing std::move.

This should fix the 'could-not-covert' error at wrapper_function_utils.h:128 in
https://lab.llvm.org/buildbot/#/builders/112/builds/7748.

Added: 
    

Modified: 
    compiler-rt/lib/orc/wrapper_function_utils.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/orc/wrapper_function_utils.h b/compiler-rt/lib/orc/wrapper_function_utils.h
index 0c6973db99a6..49faa03e5eb8 100644
--- a/compiler-rt/lib/orc/wrapper_function_utils.h
+++ b/compiler-rt/lib/orc/wrapper_function_utils.h
@@ -125,7 +125,7 @@ serializeViaSPSToWrapperFunctionResult(const ArgTs &...Args) {
   if (!SPSArgListT::serialize(OB, Args...))
     return make_error<StringError>(
         "Error serializing arguments to blob in call");
-  return Result;
+  return std::move(Result);
 }
 
 template <typename RetT> class WrapperFunctionHandlerCaller {


        


More information about the llvm-commits mailing list