OSDN Git Service

nir: Validate base types on array dereferences
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Sep 2017 23:40:28 +0000 (16:40 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Nov 2017 18:41:24 +0000 (10:41 -0800)
commitad77775809555bc215f468424215e8dddc7083bf
treed99d4e6f962dee3e6534647bcf95e10b026af32d
parentab9220edd69fcb7016e15d4d96186eac524b45a4
nir: Validate base types on array dereferences

We were already validating that the parent type goes along with the
child type but we weren't actually validating that the parent type is
reasonable.  This fixes that.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir_validate.c