mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 19:50:05 +00:00
parent
9edeeafdb6
commit
e12087d6c3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user