diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp index d6f48c992ae0..30cd923b54a7 100644 --- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayer2Test.cpp @@ -67,7 +67,7 @@ static bool testSetProcessAllSections(std::unique_ptr Obj, bool DebugSectionSeen = false; auto MM = std::make_shared(DebugSectionSeen); - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; auto &JD = ES.createJITDylib("main"); auto Foo = ES.getSymbolStringPool().intern("foo"); @@ -261,7 +261,7 @@ TEST(RTDyldObjectLinkingLayer2Test, NoDuplicateFinalization) { return; LLVMContext Context; - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; auto &JD = ES.createJITDylib("main"); auto Foo = ES.getSymbolStringPool().intern("foo"); @@ -338,7 +338,7 @@ TEST(RTDyldObjectLinkingLayer2Test, NoPrematureAllocation) { if (!TM) return; - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; auto &JD = ES.createJITDylib("main"); auto Foo = ES.getSymbolStringPool().intern("foo"); @@ -392,7 +392,7 @@ TEST(RTDyldObjectLinkingLayer2Test, NoPrematureAllocation) { } TEST(RTDyldObjectLinkingLayer2Test, TestNotifyLoadedSignature) { - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; RTDyldObjectLinkingLayer2 ObjLayer( ES, [](VModuleKey) -> std::shared_ptr { diff --git a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp index 94b771f26405..62c6b7dfa311 100644 --- a/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp @@ -67,7 +67,7 @@ TEST(RTDyldObjectLinkingLayerTest, TestSetProcessAllSections) { bool DebugSectionSeen = false; auto MM = std::make_shared(DebugSectionSeen); - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; RTDyldObjectLinkingLayer ObjLayer(ES, [&MM](VModuleKey) { return RTDyldObjectLinkingLayer::Resources{ @@ -123,7 +123,7 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoDuplicateFinalization) { if (!SupportsJIT) return; - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; auto MM = std::make_shared(); @@ -207,7 +207,7 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoPrematureAllocation) { if (!SupportsJIT) return; - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; auto MM = std::make_shared(); @@ -268,7 +268,7 @@ TEST_F(RTDyldObjectLinkingLayerExecutionTest, NoPrematureAllocation) { } TEST_F(RTDyldObjectLinkingLayerExecutionTest, TestNotifyLoadedSignature) { - ExecutionSession ES(std::make_shared()); + ExecutionSession ES; RTDyldObjectLinkingLayer ObjLayer( ES, [](VModuleKey) {