diff options
Diffstat (limited to 'source/val/instruction.h')
-rw-r--r-- | source/val/instruction.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/val/instruction.h b/source/val/instruction.h index c524bd37..6d1f9f4f 100644 --- a/source/val/instruction.h +++ b/source/val/instruction.h @@ -42,7 +42,7 @@ class Instruction { uint32_t id() const { return inst_.result_id; } uint32_t type_id() const { return inst_.type_id; } - spv::Op opcode() const { return static_cast<spv::Op>(inst_.opcode); } + SpvOp opcode() const { return static_cast<SpvOp>(inst_.opcode); } /// Returns the Function where the instruction was defined. nullptr if it was /// defined outside of a Function @@ -87,13 +87,13 @@ class Instruction { } bool IsNonSemantic() const { - return opcode() == spv::Op::OpExtInst && + return opcode() == SpvOp::SpvOpExtInst && spvExtInstIsNonSemantic(inst_.ext_inst_type); } /// True if this is an OpExtInst for debug info extension. bool IsDebugInfo() const { - return opcode() == spv::Op::OpExtInst && + return opcode() == SpvOp::SpvOpExtInst && spvExtInstIsDebugInfo(inst_.ext_inst_type); } |