From: Tapani Pälli Date: Thu, 13 Jun 2019 09:58:04 +0000 (+0300) Subject: ir3: initialize progress false before ir3_nir_lower_imul X-Git-Tag: upstream/19.3.0~5496 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=287b58f827052d1d9cf101871e40ee24f6e7eef2;p=platform%2Fupstream%2Fmesa.git ir3: initialize progress false before ir3_nir_lower_imul 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 --- diff --git a/src/freedreno/ir3/ir3_context.c b/src/freedreno/ir3/ir3_context.c index e572f33..49a7776 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);