diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index 4426c67ef8f..3d4bc4c6882 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -32,6 +32,9 @@ JIT::JIT(ModuleProvider *MP, TargetMachine &tm, TargetJITInfo &tji) // Initialize MCE MCE = createEmitter(*this); + // Add target data + PM.add (new TargetData (TM.getTargetData ())); + // Compile LLVM Code down to machine code in the intermediate representation TJI.addPassesToJITCompile(PM);