Unbreak unittests build.
[oota-llvm.git] / unittests / ExecutionEngine / JIT / JITTest.cpp
index b46ff8adf6362d6b4d161e0b702ce820520c76d3..41caeb21bf83083d42ae264269cc00a3291fc964 100644 (file)
@@ -62,7 +62,7 @@ TEST(JIT, GlobalInFunction) {
   MemMgr->setPoisonMemory(true);
   std::string Error;
   OwningPtr<ExecutionEngine> JIT(EngineBuilder(MP)
-                                 .setEnginePreference(EngineBuilder::JITONLY)
+                                 .setEngineKind(EngineKind::JIT)
                                  .setErrorStr(&Error)
                                  .setJITMemoryManager(MemMgr)
                                  // The next line enables the fix: