From ea6ed2379d43330152273caa87f93ea7a77ec9f7 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 15 Sep 2016 11:11:12 -0700 Subject: glsl: Fix cut-and-paste bug in hierarchical visitor ir_expression::accept At this point in the code, s must be visit_continue. If the child returned visit_stop, visit_stop is the only correct thing to return. Found by inspection. Signed-off-by: Ian Romanick Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Kenneth Graunke --- src/compiler/glsl/ir_hv_accept.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/glsl/ir_hv_accept.cpp b/src/compiler/glsl/ir_hv_accept.cpp index 213992af28..5cc6a346fa 100644 --- a/src/compiler/glsl/ir_hv_accept.cpp +++ b/src/compiler/glsl/ir_hv_accept.cpp @@ -147,7 +147,7 @@ ir_expression::accept(ir_hierarchical_visitor *v) goto done; case visit_stop: - return s; + return visit_stop; } } -- cgit v1.2.3