aboutsummaryrefslogtreecommitdiff
path: root/source/fuzz/fuzzer_pass_copy_objects.cpp
diff options
context:
space:
mode:
authorJames Farrell <jamesfarrell@google.com>2023-01-19 20:23:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-01-19 20:23:38 +0000
commit12f5c853ee9e06ba6565006d8d36ee261a140d91 (patch)
treec8ac54510931ab3549d323a0056bed2dd7d8237f /source/fuzz/fuzzer_pass_copy_objects.cpp
parentd75f78543eeb24bd8441f2f07f34d273613c64fa (diff)
downloadspirv-tools-ndk-r26-release.tar.gz
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.cpp11
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;
}