From b0c3c955aece11f506a10c9134f64960010d88f6 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 12 Jul 2013 19:21:41 -0700 Subject: [PATCH] r600g/sb: Initialize ra_constraint::cost. Fixes "Uninitialized scalar field" reported by Coverity. Signed-off-by: Vinson Lee --- src/gallium/drivers/r600/sb/sb_shader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sb/sb_shader.h b/src/gallium/drivers/r600/sb/sb_shader.h index ca9d29eb808..040dbf46667 100644 --- a/src/gallium/drivers/r600/sb/sb_shader.h +++ b/src/gallium/drivers/r600/sb/sb_shader.h @@ -113,7 +113,7 @@ typedef std::vector chunk_vector; class ra_constraint { public: - ra_constraint(constraint_kind kind) : kind(kind) {} + ra_constraint(constraint_kind kind) : kind(kind), cost(0) {} constraint_kind kind; vvec values; -- 2.30.2