Skip to content
Snippets Groups Projects
Commit 8eceac9d authored by Emil Velikov's avatar Emil Velikov
Browse files

glsl: remove unreachable assert()


Earlier commit enforced that we'll bail out if the number of terminators
is different than 2. With that in mind, the assert() will never trigger.

Fixes: 56b86739 ("glsl: fix infinite loop caused by bug in loop
unrolling pass")
Reviewed-by: default avatarTimothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 0d0ef8ae
No related branches found
No related tags found
No related merge requests found
......@@ -528,8 +528,6 @@ loop_unroll_visitor::visit_leave(ir_loop *ir)
unsigned term_count = 0;
bool first_term_then_continue = false;
foreach_in_list(loop_terminator, t, &ls->terminators) {
assert(term_count < 2);
ir_if *ir_if = t->ir->as_if();
assert(ir_if != NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment