Commit 9e3740c4 authored by Timothy Arceri's avatar Timothy Arceri
Browse files

nir: initialise some variables in opt_if_loop_last_continue()

Fixes a couple of Coverity warnings CID 1444626.

Fixes: e30804c6

 ("nir/radv: remove restrictions on opt_if_loop_last_continue()")
Reviewed-by: Tapani Pälli's avatarTapani Pälli <>
parent 83f1b0e9
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment