aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/loop_analysis.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-26 07:45:10 +0200
committermarha <marha@users.sourceforge.net>2013-07-26 07:45:10 +0200
commit8647aa1a5029fcd96f134103331ddf3c21bc0a0b (patch)
tree419501343bcdd7e12477b1f3bbc302815752ce55 /mesalib/src/glsl/loop_analysis.cpp
parentacf3535c75d7c79154b6b89c66567317944d244c (diff)
downloadvcxsrv-8647aa1a5029fcd96f134103331ddf3c21bc0a0b.tar.gz
vcxsrv-8647aa1a5029fcd96f134103331ddf3c21bc0a0b.tar.bz2
vcxsrv-8647aa1a5029fcd96f134103331ddf3c21bc0a0b.zip
xserver mesa git update 26 Jul 2013
xserver commit bdd1e22cbde9ea2324e4e1991c9e152f22f88151 mesa commit 81a156d099b5c224d4a528b66a80e25626ed65bc
Diffstat (limited to 'mesalib/src/glsl/loop_analysis.cpp')
-rw-r--r--mesalib/src/glsl/loop_analysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesalib/src/glsl/loop_analysis.cpp b/mesalib/src/glsl/loop_analysis.cpp
index 191e92de7..40897bb6f 100644
--- a/mesalib/src/glsl/loop_analysis.cpp
+++ b/mesalib/src/glsl/loop_analysis.cpp
@@ -503,7 +503,8 @@ is_loop_terminator(ir_if *ir)
ir_instruction *const inst =
(ir_instruction *) ir->then_instructions.get_head();
- assert(inst != NULL);
+ if (inst == NULL)
+ return false;
if (inst->ir_type != ir_type_loop_jump)
return false;