diff options
Diffstat (limited to 'source/fuzz/instruction_message.cpp')
-rw-r--r-- | source/fuzz/instruction_message.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fuzz/instruction_message.cpp b/source/fuzz/instruction_message.cpp index 7e8ac71b..95039327 100644 --- a/source/fuzz/instruction_message.cpp +++ b/source/fuzz/instruction_message.cpp @@ -20,10 +20,10 @@ namespace spvtools { namespace fuzz { protobufs::Instruction MakeInstructionMessage( - spv::Op opcode, uint32_t result_type_id, uint32_t result_id, + SpvOp opcode, uint32_t result_type_id, uint32_t result_id, const opt::Instruction::OperandList& input_operands) { protobufs::Instruction result; - result.set_opcode(uint32_t(opcode)); + result.set_opcode(opcode); result.set_result_type_id(result_type_id); result.set_result_id(result_id); for (auto& operand : input_operands) { @@ -71,7 +71,7 @@ std::unique_ptr<opt::Instruction> InstructionFromMessage( } // Create and return the instruction. return MakeUnique<opt::Instruction>( - ir_context, static_cast<spv::Op>(instruction_message.opcode()), + ir_context, static_cast<SpvOp>(instruction_message.opcode()), instruction_message.result_type_id(), instruction_message.result_id(), in_operands); } |