nir: Fix uninitialized use of 'replacement'.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Jul 2016 05:42:44 +0000 (22:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Jul 2016 00:34:59 +0000 (17:34 -0700)
commitf0f466214e65aa462f80d3608296685011862714
tree5e84ff60db76a173471f62ae5ac298745b1b4f04
parent89873c9b0860067ce01ec92b11b4f4242ef450c4
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>
src/compiler/nir/nir_lower_io.c