diff options
Diffstat (limited to 'source/fuzz/fuzzer_pass_add_copy_memory.cpp')
-rw-r--r-- | source/fuzz/fuzzer_pass_add_copy_memory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fuzz/fuzzer_pass_add_copy_memory.cpp b/source/fuzz/fuzzer_pass_add_copy_memory.cpp index d54d4ad8..6551f49f 100644 --- a/source/fuzz/fuzzer_pass_add_copy_memory.cpp +++ b/source/fuzz/fuzzer_pass_add_copy_memory.cpp @@ -36,7 +36,7 @@ void FuzzerPassAddCopyMemory::Apply() { opt::BasicBlock::iterator inst_it, const protobufs::InstructionDescriptor& instruction_descriptor) { // Check that we can insert an OpCopyMemory before this instruction. - if (!fuzzerutil::CanInsertOpcodeBeforeInstruction(spv::Op::OpCopyMemory, + if (!fuzzerutil::CanInsertOpcodeBeforeInstruction(SpvOpCopyMemory, inst_it)) { return; } @@ -61,8 +61,8 @@ void FuzzerPassAddCopyMemory::Apply() { // Decide whether to create global or local variable. auto storage_class = GetFuzzerContext()->ChooseEven() - ? spv::StorageClass::Private - : spv::StorageClass::Function; + ? SpvStorageClassPrivate + : SpvStorageClassFunction; auto pointee_type_id = fuzzerutil::GetPointeeTypeIdFromPointerType( GetIRContext(), inst->type_id()); |