[ORC] Fix missing std::move
authorLang Hames <lhames@gmail.com>
Sun, 12 Sep 2021 05:27:19 +0000 (15:27 +1000)
committerLang Hames <lhames@gmail.com>
Sun, 12 Sep 2021 05:27:19 +0000 (15:27 +1000)
llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp

index a99bfd2..247c53f 100644 (file)
@@ -60,7 +60,7 @@ FDSimpleRemoteEPCTransport::Create(SimpleRemoteEPCTransportClient &C, int InFD,
                                    inconvertibleErrorCode());
   std::unique_ptr<FDSimpleRemoteEPCTransport> FDT(
       new FDSimpleRemoteEPCTransport(C, InFD, OutFD));
-  return FDT;
+  return std::move(FDT);
 #else
   return make_error<StringError>("FD-based SimpleRemoteEPC transport requires "
                                  "thread support, but llvm was built with "