mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01:00
nir: initialise some variables in opt_if_loop_last_continue()
Fixes a couple of Coverity warnings CID 1444626.
Fixes: e30804c602 ("nir/radv: remove restrictions on opt_if_loop_last_continue()")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
83f1b0e95b
commit
9e3740c47f
1 changed files with 2 additions and 2 deletions
|
|
@ -839,8 +839,8 @@ static bool
|
|||
opt_if_loop_last_continue(nir_loop *loop, bool aggressive_last_continue)
|
||||
{
|
||||
nir_if *nif;
|
||||
bool then_ends_in_continue;
|
||||
bool else_ends_in_continue;
|
||||
bool then_ends_in_continue = false;
|
||||
bool else_ends_in_continue = false;
|
||||
|
||||
/* Scan the control flow of the loop from the last to the first node
|
||||
* looking for an if-statement we can optimise.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue