mesa: added null ptr check (error handling case)
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 21 Jul 2008 22:04:56 +0000 (16:04 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 21 Jul 2008 22:04:56 +0000 (16:04 -0600)
src/mesa/shader/slang/slang_emit.c

index 291fd7c6ddf339e70b4ab3f2a5a6cd9ad86d3009..c01ec3c185f1d8da344268afe12a8513a253b03c 100644 (file)
@@ -1225,6 +1225,9 @@ emit_if(slang_emit_info *emitInfo, slang_ir_node *n)
       }
    }
 
+   if (!n->Children[0]->Store)
+      return NULL;
+
 #if 0
    assert(n->Children[0]->Store->Size == 1); /* a bool! */
 #endif