aco: improve assertion at the end of spiller
[mesa.git] / src / amd / compiler / aco_spill.cpp
index 4179a77538893f8b42fd6bc02cc65d2137331fab..99275971048129a0d5c1ae754d3430fb12cbe6f1 100644 (file)
@@ -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);
 }
 
 }