nir/validate: assume() that hashtable entry exists
authorRob Clark <robclark@freedesktop.org>
Wed, 18 May 2016 15:43:15 +0000 (11:43 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 20 May 2016 15:13:50 +0000 (11:13 -0400)
commitdf361fc58cb1aaf8c692c3aa6f545cf7f495b374
tree41836fb177d4bed9c943d3193ed201592ff41884
parentfcd6b3f42be904d162b78fe75ba14c6415cdb815
nir/validate: assume() that hashtable entry exists

At this point, it would require a logic error in nir_validate to not
have already populated this hashtable entry, but coverity doesn't
realize that:

CID 1265547 (#1 of 1): Dereference null return value (NULL_RETURNS)3.
dereference: Dereferencing a null pointer entry.

CID 1271039 (#1 of 1): Dereference null return value (NULL_RETURNS)3.
dereference: Dereferencing a null pointer entry.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_validate.c