nir: Check if u_vector_init() succeeds
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 5 Apr 2018 07:21:01 +0000 (10:21 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Tue, 10 Apr 2018 22:49:56 +0000 (01:49 +0300)
commit5d895a1f374854a068104f07f79a24fc79110aea
tree32d278a61e0f71f04e7c4ec829c6b142b86fff56
parent98d38747543277cf931499a6b66626ac644b1865
nir: Check if u_vector_init() succeeds

However, it only fails when running out of memory. Now, if we
are about to check that, we should be consistent and check
the allocation of the worklist as well.

CID: 1433512
Fixes: edb18564c7 nir: Initial implementation of a nir_instr_worklist
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/compiler/nir/nir_worklist.h