Validate the number of arguments in OpTypeFunction
authorEhsan Nasiri <ehsann@google.com>
Mon, 28 Nov 2016 18:04:32 +0000 (13:04 -0500)
committerDavid Neto <dneto@google.com>
Thu, 1 Dec 2016 20:49:31 +0000 (15:49 -0500)
commit490617133e2153bfcb646fee8ec04e8d2dfabfd8
treef0da634208de92dc7c69ec5c14dde4d60036f8a3
parent5f2d40915e450664764ed8525122319abf67d34b
Validate the number of arguments in OpTypeFunction

According to the SPIR-V spec (section 2.17: Universal Limits), the
OpTypeFunction instruction may not take more than 255 arguments for the
function. Also added unit tests for it.
source/validate_id.cpp
test/val/val_limits_test.cpp