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 {
485485 SmallSetVector<SILValue, 32 > addressesToCheck;
486486 SILFunction *fn;
487487 UseState useState;
488- GatherLexicalLifetimeUseVisitor visitor;
489488 llvm::DenseMap<SILBasicBlock *, SILInstruction *> useBlocks;
490489 llvm::DenseSet<SILBasicBlock *> initBlocks;
491490 llvm::DenseMap<SILBasicBlock *, SILInstruction *> destroyBlocks;
492491 llvm::DenseMap<SILBasicBlock *, SILInstruction *> reinitBlocks;
493492 SmallVector<MarkUnresolvedMoveAddrInst *, 8 > markMovesToDataflow;
494493
495494 MoveKillsCopyableAddressesObjectChecker (SILFunction *fn)
496- : fn(fn), useState(), visitor(useState) {}
495+ : fn(fn), useState() {}
497496 bool performSingleBasicBlockAnalysisForAllMarkMoves (SILValue address);
498497 bool performGlobalDataflow (SILValue address);
499498
@@ -880,6 +879,7 @@ bool MoveKillsCopyableAddressesObjectChecker::check() {
880879 if (!accessPath.isValid ())
881880 continue ;
882881
882+ GatherLexicalLifetimeUseVisitor visitor (useState);
883883 SWIFT_DEFER { visitor.clear (); };
884884 visitor.reset (address);
885885 if (!visitAccessPathUses (visitor, accessPath, fn))
You can’t perform that action at this time.
0 commit comments