summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_hierarchical_visitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.cpp')
-rw-r--r--src/glsl/ir_hierarchical_visitor.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/glsl/ir_hierarchical_visitor.cpp b/src/glsl/ir_hierarchical_visitor.cpp
index 9afb12a4a2b..d475df62fce 100644
--- a/src/glsl/ir_hierarchical_visitor.cpp
+++ b/src/glsl/ir_hierarchical_visitor.cpp
@@ -277,12 +277,7 @@ ir_hierarchical_visitor::visit_leave(ir_if *ir)
void
ir_hierarchical_visitor::run(exec_list *instructions)
{
- foreach_list(n, instructions) {
- ir_instruction *ir = (ir_instruction *) n;
-
- if (ir->accept(this) != visit_continue)
- break;
- }
+ visit_list_elements(this, instructions);
}