nir/control_flow: Handle relinking top-level blocks
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 18 Dec 2015 19:27:00 +0000 (11:27 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Dec 2015 21:49:56 +0000 (13:49 -0800)
commit86772c24885be27a7fa9473c471a8eaff54b2ee9
tree428de45a850eb3ec90e6684fbe4764df52f81547
parent1749e667ea38ec539d29c92c08f94738afcb91ad
nir/control_flow: Handle relinking top-level blocks

This can happen if a function ends in a return instruction and you remove
the return.
src/glsl/nir/nir_control_flow.c