mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-27 02:10:15 +00:00
Use spv_result_t instead of bool
Using bool is confusing here, and results in an MSVC warning about an implicit cast to bool.
This commit is contained in:
parent
6e550f4181
commit
ead54bbd91
@ -282,7 +282,7 @@ spv_result_t ExtensionCheck(ValidationState_t& _, const Instruction* inst) {
|
||||
spv_result_t VersionCheck(ValidationState_t& _, const Instruction* inst) {
|
||||
const auto opcode = inst->opcode();
|
||||
spv_opcode_desc inst_desc;
|
||||
const bool r = _.grammar().lookupOpcode(opcode, &inst_desc);
|
||||
const spv_result_t r = _.grammar().lookupOpcode(opcode, &inst_desc);
|
||||
assert(r == SPV_SUCCESS);
|
||||
(void)r;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user