nir: fix nir_shader_clone() and nir_sweep()
authorTimothy Arceri <timothy.arceri@collabora.com>
Wed, 2 Nov 2016 22:18:19 +0000 (09:18 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 2 Nov 2016 23:39:13 +0000 (10:39 +1100)
commit903e5eae974c125c2605fad465f7cf6863143199
tree86caab8c65a346479fddb1635b8c3cc03609fbf0
parentf304aca54204fab2dd674a07f4bf13a6a1581c20
nir: fix nir_shader_clone() and nir_sweep()

These were broken in e1af20f18a8 when the info field in nir_shader was
turned into a pointer.

Clone was copying the pointer rather than the data and nir_sweep was
cleaning up shader_info rather than claiming it.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_sweep.c