From: José Fonseca Date: Wed, 3 Dec 2014 07:48:26 +0000 (+0000) Subject: gallivm: Update for RTDyldMemoryManager becoming an unique_ptr. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef7e0b39a24966526b102643523feac765771842;p=mesa.git gallivm: Update for RTDyldMemoryManager becoming an unique_ptr. Trivial. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=86958 --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index fe3c7542166..5210acca427 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -500,7 +500,11 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT, MM = new ShaderMemoryManager(JMM); *OutCode = MM->getGeneratedCode(); +#if HAVE_LLVM >= 0x0306 + builder.setMCJITMemoryManager(std::unique_ptr(MM)); +#else builder.setMCJITMemoryManager(MM); +#endif #endif } else { #if HAVE_LLVM < 0x0306