spirv-fuzz: fix test (#3845)

Fix test that broke due to a merge.
This commit is contained in:
Paul Thomson 2020-09-24 19:38:50 +01:00 committed by GitHub
parent 9edeeafdb6
commit e12087d6c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1436,12 +1436,11 @@ TEST(TransformationAddSynonymTest, HandlesDeadBlocks) {
const auto consumer = nullptr;
const auto context = BuildModule(env, consumer, shader, kFuzzAssembleOption);
FactManager fact_manager(context.get());
spvtools::ValidatorOptions validator_options;
TransformationContext transformation_context(&fact_manager,
validator_options);
TransformationContext transformation_context(
MakeUnique<FactManager>(context.get()), validator_options);
fact_manager.AddFactBlockIsDead(9);
transformation_context.GetFactManager()->AddFactBlockIsDead(9);
auto insert_before = MakeInstructionDescriptor(9, SpvOpBranch, 0);