From 94e3ecae2d0d7b22ca545026345ca872ec2edf72 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 23 Sep 2013 21:47:48 -0700 Subject: [PATCH] glsl: Initialize lower_vector_visitor::dont_lower_swz. Fixes "Uninitialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- src/glsl/lower_vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/lower_vector.cpp b/src/glsl/lower_vector.cpp index 9172b6af7b5..a658410ae6f 100644 --- a/src/glsl/lower_vector.cpp +++ b/src/glsl/lower_vector.cpp @@ -35,7 +35,7 @@ namespace { class lower_vector_visitor : public ir_rvalue_visitor { public: - lower_vector_visitor() : progress(false) + lower_vector_visitor() : dont_lower_swz(false), progress(false) { /* empty */ } -- 2.30.2