nir/validate: fix crash if entry is null.
authorDave Airlie <airlied@redhat.com>
Mon, 20 May 2019 01:05:15 +0000 (11:05 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 20 May 2019 06:26:48 +0000 (16:26 +1000)
commit6b2b150a66fbf648521c5dcc6ad9cbb76c55e511
tree2a857d5bce15dbe9e1f820dd6b7f7ec536134bcf
parenta1d419603f757e8a8533f2fbf1dd136420acbd28
nir/validate: fix crash if entry is null.

we validate assert entry just before this, but since that doesn't
stop execution, we need to check entry before the next validation
assert.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_validate.c