diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp index 2e0f9311a1f4..e0568ad2dcd0 100644 --- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp +++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp @@ -410,6 +410,7 @@ TEST_F(JITTest, NonLazyLeaksNoStubs) { #endif TEST_F(JITTest, ModuleDeletion) { + TheJIT->DisableLazyCompilation(false); LoadAssembly("define void @main() { " " call i32 @computeVal() " " ret void "