spirv: Silence compiler warning about undefined srcs[0]
authorEric Anholt <eric@anholt.net>
Wed, 21 Feb 2018 04:28:09 +0000 (20:28 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 13 Mar 2018 17:32:55 +0000 (10:32 -0700)
commit191bc7ce61660c1a4b8de97fe276c75fdc9d464f
tree642b3dc0d0f7ea1b0eb04d76bfaa04b6fc1dd96a
parent7c834306724881a859f7ac2a48ad71fd8b882765
spirv: Silence compiler warning about undefined srcs[0]

v2: Use assume() at the srcs[] definition instead.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/spirv/spirv_to_nir.c