]> granicus.if.org Git - llvm/commitdiff
[ORC] Work around broken GCC/libstdc++ by adding an explicit conversion.
authorLang Hames <lhames@gmail.com>
Mon, 5 Aug 2019 20:30:35 +0000 (20:30 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 5 Aug 2019 20:30:35 +0000 (20:30 +0000)
This should fix the bots that have been failing due to r367712.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367921 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Orc/LLJIT.cpp

index 14b3b6ac7f69ba9d000b794c1a1d51c739263ccb..05ebb746985a3edb5e9ff92b6691cd37c79bdbef 100644 (file)
@@ -75,7 +75,10 @@ LLJIT::createObjectLinkingLayer(LLJITBuilderState &S, ExecutionSession &ES) {
   if (S.JTMB->getTargetTriple().isOSBinFormatCOFF())
     ObjLinkingLayer->setOverrideObjectFlagsWithResponsibilityFlags(true);
 
-  return ObjLinkingLayer;
+  // FIXME: Explicit conversion to std::unique_ptr<ObjectLayer> added to silence
+  //        errors from some GCC / libstdc++ bots. Remove this conversion (i.e.
+  //        just return ObjLinkingLayer) once those bots are upgraded.
+  return std::unique_ptr<ObjectLayer>(std::move(ObjLinkingLayer));
 }
 
 Expected<IRCompileLayer::CompileFunction>