summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-07-18 22:42:44 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-07-19 17:34:59 -0700
commitf0f466214e65aa462f80d3608296685011862714 (patch)
tree5e84ff60db76a173471f62ae5ac298745b1b4f04 /src/compiler/nir
parent89873c9b0860067ce01ec92b11b4f4242ef450c4 (diff)
downloadexternal_mesa3d-f0f466214e65aa462f80d3608296685011862714.zip
external_mesa3d-f0f466214e65aa462f80d3608296685011862714.tar.gz
external_mesa3d-f0f466214e65aa462f80d3608296685011862714.tar.bz2
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 <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_lower_io.c2
1 files changed, 1 insertions, 1 deletions
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) {