From 287b58f827052d1d9cf101871e40ee24f6e7eef2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Thu, 13 Jun 2019 12:58:04 +0300 Subject: [PATCH] ir3: initialize progress false before ir3_nir_lower_imul MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Removes a compiler warning about uninitialized variable. Fixes: c02ffd2700c "ir3: Use the new NIR lowering pass for integer multiplication" Signed-off-by: Tapani Pälli Reviewed-by: Rob Clark Reviewed-by: Eduardo Lima --- src/freedreno/ir3/ir3_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_context.c b/src/freedreno/ir3/ir3_context.c index e572f33ef24..49a7776164e 100644 --- a/src/freedreno/ir3/ir3_context.c +++ b/src/freedreno/ir3/ir3_context.c @@ -90,7 +90,7 @@ ir3_context_init(struct ir3_compiler *compiler, * However, we want a final swing of a few passes to have a chance * at optimizing the result. */ - bool progress; + bool progress = false; NIR_PASS(progress, ctx->s, ir3_nir_lower_imul); if (progress) { NIR_PASS_V(ctx->s, nir_opt_algebraic); -- 2.30.2