nir/lower_returns: Don't just change the type of a jump.
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Dec 2015 22:51:45 +0000 (14:51 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Dec 2015 22:51:47 +0000 (14:51 -0800)
commit5f04a61219fadf8e4e99fe1254674c6b3258a28a
treea724d11c5b78a322621ddd04667469f088fc69cc
parent6fa47c9c175498edd1bfda4f58e95fed48f1c50d
nir/lower_returns: Don't just change the type of a jump.

It doesn't give core NIR the opportunity to update predecessors and
successors.  Instead, we have to remove and re-insert the instruction.
src/glsl/nir/nir_lower_returns.c