[ORC-RT] Fix missing std::move.
authorLang Hames <lhames@gmail.com>
Mon, 19 Jul 2021 10:59:28 +0000 (20:59 +1000)
committerLang Hames <lhames@gmail.com>
Mon, 19 Jul 2021 11:03:12 +0000 (21:03 +1000)
This should fix the 'could-not-covert' error at wrapper_function_utils.h:128 in
https://lab.llvm.org/buildbot/#/builders/112/builds/7748.

compiler-rt/lib/orc/wrapper_function_utils.h

index 0c6973d..49faa03 100644 (file)
@@ -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 {