summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2016-09-15 11:11:12 -0700
committerIan Romanick <ian.d.romanick@intel.com>2016-09-27 12:06:46 -0700
commitea6ed2379d43330152273caa87f93ea7a77ec9f7 (patch)
treea8e6c8ad2996335208ab5fdc3f49557bc161e662 /src/compiler/glsl
parent7f64041cee3101c673be6d7bffbb03dab69ccca4 (diff)
downloadexternal_mesa3d-ea6ed2379d43330152273caa87f93ea7a77ec9f7.zip
external_mesa3d-ea6ed2379d43330152273caa87f93ea7a77ec9f7.tar.gz
external_mesa3d-ea6ed2379d43330152273caa87f93ea7a77ec9f7.tar.bz2
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 <ian.d.romanick@intel.com> Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/ir_hv_accept.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_hv_accept.cpp b/src/compiler/glsl/ir_hv_accept.cpp
index 213992a..5cc6a34 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;
}
}