diff options
Diffstat (limited to 'source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.cpp')
-rw-r--r-- | source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.cpp b/source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.cpp index 4cddf55e..a29d1d34 100644 --- a/source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.cpp +++ b/source/fuzz/fuzzer_pass_add_vector_shuffle_instructions.cpp @@ -35,11 +35,10 @@ void FuzzerPassAddVectorShuffleInstructions::Apply() { opt::BasicBlock::iterator instruction_iterator, const protobufs::InstructionDescriptor& instruction_descriptor) -> void { - assert( - instruction_iterator->opcode() == - spv::Op(instruction_descriptor.target_instruction_opcode()) && - "The opcode of the instruction we might insert before must be " - "the same as the opcode in the descriptor for the instruction"); + assert(instruction_iterator->opcode() == + instruction_descriptor.target_instruction_opcode() && + "The opcode of the instruction we might insert before must be " + "the same as the opcode in the descriptor for the instruction"); // Randomly decide whether to try adding an OpVectorShuffle instruction. if (!GetFuzzerContext()->ChoosePercentage( @@ -50,7 +49,7 @@ void FuzzerPassAddVectorShuffleInstructions::Apply() { // It must be valid to insert an OpVectorShuffle instruction // before |instruction_iterator|. if (!fuzzerutil::CanInsertOpcodeBeforeInstruction( - spv::Op::OpVectorShuffle, instruction_iterator)) { + SpvOpVectorShuffle, instruction_iterator)) { return; } |