From 26d2511bcbf1f0e3affe85d42d54b4970c78a7ba Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 10 Jan 2020 16:16:43 +0000 Subject: [PATCH] aco: improve assertion at the end of spiller MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_spill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_spill.cpp b/src/amd/compiler/aco_spill.cpp index 4179a775388..99275971048 100644 --- a/src/amd/compiler/aco_spill.cpp +++ b/src/amd/compiler/aco_spill.cpp @@ -1774,7 +1774,7 @@ void spill(Program* program, live& live_vars, const struct radv_nir_compiler_opt /* update live variable information */ live_vars = live_var_analysis(program, options); - assert(program->num_waves >= 0); + assert(program->num_waves > 0); } } -- 2.30.2