Update spirv-tools to v2021.4 (#4862)
This commit is contained in:
3
third_party/spirv-tools/source/binary.cpp
vendored
3
third_party/spirv-tools/source/binary.cpp
vendored
@@ -507,7 +507,8 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
|
||||
|
||||
case SPV_OPERAND_TYPE_SPEC_CONSTANT_OP_NUMBER: {
|
||||
assert(SpvOpSpecConstantOp == opcode);
|
||||
if (grammar_.lookupSpecConstantOpcode(SpvOp(word))) {
|
||||
if (word > static_cast<uint32_t>(SpvOp::SpvOpMax) ||
|
||||
grammar_.lookupSpecConstantOpcode(SpvOp(word))) {
|
||||
return diagnostic()
|
||||
<< "Invalid " << spvOperandTypeStr(type) << ": " << word;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user