From: Brian Paul Date: Thu, 22 Sep 2011 16:29:58 +0000 (-0600) Subject: draw/llvm: add additional null pointer checkin draw_pt_fetch_pipeline_or_emit_llvm() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddfdea88d86bc9016dd51730b855ff6a9a53a4f3;p=mesa.git draw/llvm: add additional null pointer checkin draw_pt_fetch_pipeline_or_emit_llvm() --- diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c index ac839682331..2a3fb89884c 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c @@ -430,7 +430,7 @@ draw_pt_fetch_pipeline_or_emit_llvm(struct draw_context *draw) { struct llvm_middle_end *fpme = 0; - if (!draw->llvm->gallivm->engine) + if (!draw->llvm || !draw->llvm->gallivm->engine) return NULL; fpme = CALLOC_STRUCT( llvm_middle_end );