From: Kenneth Graunke Date: Tue, 19 Jul 2016 05:42:44 +0000 (-0700) Subject: nir: Fix uninitialized use of 'replacement'. X-Git-Tag: upstream/17.1.0~7886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0f466214e65aa462f80d3608296685011862714;p=platform%2Fupstream%2Fmesa.git nir: Fix uninitialized use of 'replacement'. For intrinsics we don't care about, just skip to the next loop iteration and process the next instruction. We don't want to execute the rest of the code. This was a bug in commit cdfc05ea6e8c87876cdbf588aa8e03d70f3da4bb. Signed-off-by: Kenneth Graunke Reviewed-by: Anuj Phogat --- diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 71d2432..189370d 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -369,7 +369,7 @@ nir_lower_io_block(nir_block *block, break; default: - break; + continue; } if (nir_intrinsic_infos[intrin->intrinsic].has_dest) {