aboutsummaryrefslogtreecommitdiff
path: root/source/extensions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/extensions.cpp')
-rw-r--r--source/extensions.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/extensions.cpp b/source/extensions.cpp
index ebf6bec0..049a3ad1 100644
--- a/source/extensions.cpp
+++ b/source/extensions.cpp
@@ -24,9 +24,7 @@
namespace spvtools {
std::string GetExtensionString(const spv_parsed_instruction_t* inst) {
- if (inst->opcode != static_cast<uint16_t>(spv::Op::OpExtension)) {
- return "ERROR_not_op_extension";
- }
+ if (inst->opcode != SpvOpExtension) return "ERROR_not_op_extension";
assert(inst->num_operands == 1);