Commit dae8f98f authored by Timothy Arceri's avatar Timothy Arceri

nir/loop_analyze: initialise variable to stop gcc warning

The variable is will always be set, this just stops GCC from
incorrectly warning that it might be used uninitialised.
parent 0f5c74d8
Pipeline #43768 passed with stages
in 9 minutes and 21 seconds
......@@ -892,7 +892,7 @@ find_trip_count(loop_info_state *state)
nir_alu_instr *alu = nir_instr_as_alu(terminator->conditional_instr);
nir_op alu_op = alu->op;
bool limit_rhs;
bool limit_rhs = false;
nir_loop_variable *basic_ind = NULL;
nir_alu_src *limit;
if (alu->op == nir_op_inot || alu->op == nir_op_ieq) {
......
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