From 452e5973de5b5c5fafdf27a67e049936d9ae2863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= Date: Sat, 17 Sep 2022 13:28:43 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20nir:=20unused=20variable=20=E2=80=98else?= =?UTF-8?q?=5Fblock=E2=80=99=20[-Wunused-variable]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only used in debug builds. Signed-off-by: Kai Wasserbäch Reviewed-by: Mihai Preda Part-of: --- src/compiler/nir/nir_opt_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c index ea1486b9e11..142e0ef3d95 100644 --- a/src/compiler/nir/nir_opt_if.c +++ b/src/compiler/nir/nir_opt_if.c @@ -942,7 +942,7 @@ opt_if_phi_is_condition(nir_builder *b, nir_if *nif) { /* Grab pointers to the last then/else blocks for looking in the phis. */ nir_block *then_block = nir_if_last_then_block(nif); - nir_block *else_block = nir_if_last_else_block(nif); + ASSERTED nir_block *else_block = nir_if_last_else_block(nif); nir_ssa_def *cond = nif->condition.ssa; bool progress = false;