diff options
author | James Farrell <jamesfarrell@google.com> | 2023-01-19 20:23:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-01-19 20:23:38 +0000 |
commit | 12f5c853ee9e06ba6565006d8d36ee261a140d91 (patch) | |
tree | c8ac54510931ab3549d323a0056bed2dd7d8237f /source/fuzz/fuzzer_pass_copy_objects.cpp | |
parent | d75f78543eeb24bd8441f2f07f34d273613c64fa (diff) | |
download | spirv-tools-ndk-r26-release.tar.gz |
Revert "Merge commit '0e6fbba7762c0' into update-shaderc"ndk-r27-rc1ndk-r26dndk-r26cndk-r26bndk-r26-rc1ndk-r26-beta1ndk-r26ndk-r27-releasendk-r26-releasemaster-ndk
Revert submission 2388945-update-shaderc
Reason for revert: Breaks NDK build on darwin.
Reverted changes: /q/submissionid:2388945-update-shaderc
Change-Id: I6c9b1918c98bcc3a68bbfabd40d4310e26337c24
Diffstat (limited to 'source/fuzz/fuzzer_pass_copy_objects.cpp')
-rw-r--r-- | source/fuzz/fuzzer_pass_copy_objects.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/fuzz/fuzzer_pass_copy_objects.cpp b/source/fuzz/fuzzer_pass_copy_objects.cpp index 725c33e5..80cc2a57 100644 --- a/source/fuzz/fuzzer_pass_copy_objects.cpp +++ b/source/fuzz/fuzzer_pass_copy_objects.cpp @@ -35,11 +35,10 @@ void FuzzerPassCopyObjects::Apply() { opt::BasicBlock::iterator inst_it, const protobufs::InstructionDescriptor& instruction_descriptor) -> void { - assert( - inst_it->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(inst_it->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"); if (GetTransformationContext()->GetFactManager()->BlockIsDead( block->id())) { @@ -49,7 +48,7 @@ void FuzzerPassCopyObjects::Apply() { // Check whether it is legitimate to insert a copy before this // instruction. - if (!fuzzerutil::CanInsertOpcodeBeforeInstruction(spv::Op::OpCopyObject, + if (!fuzzerutil::CanInsertOpcodeBeforeInstruction(SpvOpCopyObject, inst_it)) { return; } |