File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -485,15 +485,14 @@ struct MoveKillsCopyableAddressesObjectChecker {
485
485
SmallSetVector<SILValue, 32 > addressesToCheck;
486
486
SILFunction *fn;
487
487
UseState useState;
488
- GatherLexicalLifetimeUseVisitor visitor;
489
488
llvm::DenseMap<SILBasicBlock *, SILInstruction *> useBlocks;
490
489
llvm::DenseSet<SILBasicBlock *> initBlocks;
491
490
llvm::DenseMap<SILBasicBlock *, SILInstruction *> destroyBlocks;
492
491
llvm::DenseMap<SILBasicBlock *, SILInstruction *> reinitBlocks;
493
492
SmallVector<MarkUnresolvedMoveAddrInst *, 8 > markMovesToDataflow;
494
493
495
494
MoveKillsCopyableAddressesObjectChecker (SILFunction *fn)
496
- : fn(fn), useState(), visitor(useState) {}
495
+ : fn(fn), useState() {}
497
496
bool performSingleBasicBlockAnalysisForAllMarkMoves (SILValue address);
498
497
bool performGlobalDataflow (SILValue address);
499
498
@@ -880,6 +879,7 @@ bool MoveKillsCopyableAddressesObjectChecker::check() {
880
879
if (!accessPath.isValid ())
881
880
continue ;
882
881
882
+ GatherLexicalLifetimeUseVisitor visitor (useState);
883
883
SWIFT_DEFER { visitor.clear (); };
884
884
visitor.reset (address);
885
885
if (!visitAccessPathUses (visitor, accessPath, fn))
You can’t perform that action at this time.
0 commit comments