aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/loop_analysis.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-26 07:46:15 +0200
committermarha <marha@users.sourceforge.net>2013-07-26 07:46:15 +0200
commitec34243fae167734bfa5ba81278763af7db0fb2b (patch)
tree759fdfbe8376d8ba3a9dd82d33df9d2735e2fbc9 /mesalib/src/glsl/loop_analysis.cpp
parent1ba15549ff13d0bfcf4e82c6005d3cc40f2bf098 (diff)
parent8647aa1a5029fcd96f134103331ddf3c21bc0a0b (diff)
downloadvcxsrv-ec34243fae167734bfa5ba81278763af7db0fb2b.tar.gz
vcxsrv-ec34243fae167734bfa5ba81278763af7db0fb2b.tar.bz2
vcxsrv-ec34243fae167734bfa5ba81278763af7db0fb2b.zip
Merge remote-tracking branch 'origin/released'
* origin/released: xserver mesa git update 26 Jul 2013
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;