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 cdfc05ea6e.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Kenneth Graunke
2016-07-18 22:42:44 -07:00
parent 89873c9b08
commit f0f466214e

View File

@@ -369,7 +369,7 @@ nir_lower_io_block(nir_block *block,
break;
default:
break;
continue;
}
if (nir_intrinsic_infos[intrin->intrinsic].has_dest) {