Skip to content

Commit 8882c92

Browse files
committed
[CanonicalizeBorrowScope] Removed spurious call.
When canonicalizing an argument, liveness is not used (it being the full body of the function), so there's no need to invalidate it.
1 parent 3c4275a commit 8882c92

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/SILOptimizer/Utils/CanonicalizeBorrowScope.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,6 @@ bool CanonicalizeBorrowScope::canonicalizeFunctionArgument(
824824

825825
LLVM_DEBUG(llvm::dbgs() << "*** Canonicalize Borrow: " << borrowedValue);
826826

827-
SWIFT_DEFER { liveness.invalidate(); };
828-
829827
RewriteInnerBorrowUses innerRewriter(*this);
830828
beginVisitBorrowScopeUses(); // reset the def/use worklist
831829

0 commit comments

Comments
 (0)