From e7aa3cf8283088809625cb84fa78f1d301f35311 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 2 Nov 2020 18:17:13 -0800 Subject: [PATCH] glsl: Initialize ir_variable member field data.is_xfb. Fix defect reported by Coverity Scan. Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member field data.is_xfb is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Vinson Lee Reviewed-by: Timothy Arceri Part-of: --- src/compiler/glsl/ir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 7b30de2..d24d98c 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -2025,6 +2025,7 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name, this->data.has_initializer = false; this->data.is_implicit_initializer = false; this->data.is_unmatched_generic_inout = false; + this->data.is_xfb = false; this->data.is_xfb_only = false; this->data.explicit_xfb_buffer = false; this->data.explicit_xfb_offset = false; -- 2.7.4