diff options
Diffstat (limited to 'source/fuzz/fuzzer_pass_make_vector_operations_dynamic.cpp')
-rw-r--r-- | source/fuzz/fuzzer_pass_make_vector_operations_dynamic.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/fuzz/fuzzer_pass_make_vector_operations_dynamic.cpp b/source/fuzz/fuzzer_pass_make_vector_operations_dynamic.cpp index ec5fc4b7..b755d235 100644 --- a/source/fuzz/fuzzer_pass_make_vector_operations_dynamic.cpp +++ b/source/fuzz/fuzzer_pass_make_vector_operations_dynamic.cpp @@ -47,20 +47,18 @@ void FuzzerPassMakeVectorOperationsDynamic::Apply() { } // Make sure |instruction| has only one indexing operand. - assert( - instruction.NumInOperands() == - (instruction.opcode() == spv::Op::OpCompositeExtract ? 2 : 3) && - "FuzzerPassMakeVectorOperationsDynamic: the composite " - "instruction must have " - "only one indexing operand."); + assert(instruction.NumInOperands() == + (instruction.opcode() == SpvOpCompositeExtract ? 2 : 3) && + "FuzzerPassMakeVectorOperationsDynamic: the composite " + "instruction must have " + "only one indexing operand."); // Applies the make vector operation dynamic transformation. ApplyTransformation(TransformationMakeVectorOperationDynamic( instruction.result_id(), FindOrCreateIntegerConstant( {instruction.GetSingleWordInOperand( - instruction.opcode() == spv::Op::OpCompositeExtract ? 1 - : 2)}, + instruction.opcode() == SpvOpCompositeExtract ? 1 : 2)}, 32, GetFuzzerContext()->ChooseEven(), false))); } } |