diff options
Diffstat (limited to 'llvm/unittests/ExecutionEngine/MCJIT')
| -rw-r--r-- | llvm/unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h b/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h index f0de2d023a1..a3d3d1fffdb 100644 --- a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h +++ b/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h @@ -42,6 +42,10 @@ protected: InitializeNativeTarget(); InitializeNativeTargetAsmPrinter(); + // FIXME: It isn't at all clear why this is necesasry, but without it we + // fail to initialize the AssumptionCacheTracker. + initializeAssumptionCacheTrackerPass(*PassRegistry::getPassRegistry()); + #ifdef LLVM_ON_WIN32 // On Windows, generate ELF objects by specifying "-elf" in triple HostTriple += "-elf"; |

