gallivm: init MM = NULL to silence warning
authorBrian Paul <brianp@vmware.com>
Tue, 3 Mar 2015 20:20:56 +0000 (13:20 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Mar 2015 15:33:48 +0000 (08:33 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp

index 5210acca427a2e8c51af443f296af3c0dc72ab00..e2578cfccb8a867a6326645d0af8fe79c2fa63fe 100644 (file)
@@ -493,7 +493,7 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
    builder.setMCPU(MCPU);
 #endif
 
-   ShaderMemoryManager *MM;
+   ShaderMemoryManager *MM = NULL;
    if (useMCJIT) {
 #if HAVE_LLVM > 0x0303
        BaseMemoryManager* JMM = reinterpret_cast<BaseMemoryManager*>(CMM);