draw/llvm: add additional null pointer checkin draw_pt_fetch_pipeline_or_emit_llvm()
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user