diff options
author | Matt Turner <mattst88@gmail.com> | 2014-06-24 21:34:05 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-01 08:55:51 -0700 |
commit | 4d78446d782e2d942b4cd0cd00a27bf922ccd479 (patch) | |
tree | eaaa99ce79c54ddef6cf35c8d3d028b9e0aa44b4 /src/glsl/loop_controls.cpp | |
parent | da9f0316e6ea628c085040a0c145580301207489 (diff) | |
download | external_mesa3d-4d78446d782e2d942b4cd0cd00a27bf922ccd479.zip external_mesa3d-4d78446d782e2d942b4cd0cd00a27bf922ccd479.tar.gz external_mesa3d-4d78446d782e2d942b4cd0cd00a27bf922ccd479.tar.bz2 |
glsl: Use typed foreach_in_list instead of foreach_list.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/loop_controls.cpp')
-rw-r--r-- | src/glsl/loop_controls.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp index 3db06ad..36b49eb 100644 --- a/src/glsl/loop_controls.cpp +++ b/src/glsl/loop_controls.cpp @@ -202,9 +202,7 @@ loop_control_visitor::visit_leave(ir_loop *ir) * bound, then that terminates the loop, so we don't even need the limiting * terminator. */ - foreach_list(node, &ls->terminators) { - loop_terminator *t = (loop_terminator *) node; - + foreach_in_list(loop_terminator, t, &ls->terminators) { if (t->iterations < 0) continue; |