mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-24 16:51:06 +00:00
parent
8bc27a1cfb
commit
28f32ca53e
@ -54,13 +54,13 @@ void FuzzerPassCopyObjects::Apply() {
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<opt::Instruction*> relevant_instructions =
|
||||
FindAvailableInstructions(
|
||||
function, block, inst_it,
|
||||
[this](opt::IRContext* ir_context, opt::Instruction* inst) {
|
||||
return fuzzerutil::CanMakeSynonymOf(
|
||||
ir_context, *GetTransformationContext(), inst);
|
||||
});
|
||||
const auto relevant_instructions = FindAvailableInstructions(
|
||||
function, block, inst_it,
|
||||
[this](opt::IRContext* ir_context, opt::Instruction* inst) {
|
||||
return TransformationAddSynonym::IsInstructionValid(
|
||||
ir_context, *GetTransformationContext(), inst,
|
||||
protobufs::TransformationAddSynonym::COPY_OBJECT);
|
||||
});
|
||||
|
||||
// At this point, |relevant_instructions| contains all the instructions
|
||||
// we might think of copying.
|
||||
|
Loading…
Reference in New Issue
Block a user