diff options
Diffstat (limited to 'source/fuzz/fuzzer_pass_replace_irrelevant_ids.cpp')
-rw-r--r-- | source/fuzz/fuzzer_pass_replace_irrelevant_ids.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fuzz/fuzzer_pass_replace_irrelevant_ids.cpp b/source/fuzz/fuzzer_pass_replace_irrelevant_ids.cpp index 4c0bd859..4d55ae84 100644 --- a/source/fuzz/fuzzer_pass_replace_irrelevant_ids.cpp +++ b/source/fuzz/fuzzer_pass_replace_irrelevant_ids.cpp @@ -73,7 +73,7 @@ void FuzzerPassReplaceIrrelevantIds::Apply() { // we cannot use these as replacements. for (const auto& pair : GetIRContext()->get_def_use_mgr()->id_to_defs()) { uint32_t type_id = pair.second->type_id(); - if (pair.second->opcode() != spv::Op::OpFunction && type_id && + if (pair.second->opcode() != SpvOpFunction && type_id && types_to_ids.count(type_id)) { types_to_ids[type_id].push_back(pair.first); } |