Updated spirv-tools.

This commit is contained in:
Бранимир Караџић
2020-02-04 21:33:12 -08:00
parent b53f48f92c
commit d86146c96b
121 changed files with 10404 additions and 535 deletions
+2 -1
View File
@@ -87,7 +87,8 @@ spv_result_t ValidateFunction(ValidationState_t& _, const Instruction* inst) {
for (auto& pair : inst->uses()) {
const auto* use = pair.first;
if (std::find(acceptable.begin(), acceptable.end(), use->opcode()) ==
acceptable.end()) {
acceptable.end() &&
!use->IsNonSemantic() && !use->IsDebugInfo()) {
return _.diag(SPV_ERROR_INVALID_ID, use)
<< "Invalid use of function result id " << _.getIdName(inst->id())
<< ".";