diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 776af47909b..6bc4d8142f6 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -493,11 +493,13 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT, ShaderMemoryManager *MM; if (useMCJIT) { +#if HAVE_LLVM > 0x0303 BaseMemoryManager* JMM = reinterpret_cast(CMM); MM = new ShaderMemoryManager(JMM); *OutCode = MM->getGeneratedCode(); builder.setMCJITMemoryManager(MM); +#endif } else { #if HAVE_LLVM < 0x0306 BaseMemoryManager* JMM = reinterpret_cast(CMM);