diff options
author | Ehsan Nasiri <ehsann@google.com> | 2016-11-10 15:12:26 -0500 |
---|---|---|
committer | David Neto <dneto@google.com> | 2016-11-16 16:41:56 -0500 |
commit | 8c414eb5798768f09d20f98df53bb15428ef2083 (patch) | |
tree | bd426b707566e08861111ac28da71f29f68b2be3 /source/validate.cpp | |
parent | 5c19de25107d496a15c7869b3e1dab0a0f85913d (diff) | |
download | spirv-tools-8c414eb5798768f09d20f98df53bb15428ef2083.tar.gz |
Adding validation code for OpTypeStruct.
According to the Data Rules section of 2.16.1. Universal Validation
Rules of the SPIR-V Spec:
Forward reference operands in an OpTypeStruct
* must be later declared with OpTypePointer
* the type pointed to must be an OpTypeStruct
* had an earlier OpTypeForwardPointer forward reference to the same <id>
Diffstat (limited to 'source/validate.cpp')
-rw-r--r-- | source/validate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/validate.cpp b/source/validate.cpp index 28984971..402bb109 100644 --- a/source/validate.cpp +++ b/source/validate.cpp @@ -230,7 +230,7 @@ spv_result_t spvValidateBinary(const spv_const_context context, auto id_str = ss.str(); return vstate.diag(SPV_ERROR_INVALID_ID) - << "The following forward referenced IDs have not be defined:\n" + << "The following forward referenced IDs have not been defined:\n" << id_str.substr(0, id_str.size() - 1); } |