mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -778,9 +778,15 @@ bool CanonicalizeBorrowScope::consolidateBorrowScope() {
|
||||
|
||||
bool CanonicalizeBorrowScope::canonicalizeFunctionArgument(
|
||||
SILFunctionArgument *arg) {
|
||||
BorrowedValue borrow(arg);
|
||||
if (!borrow)
|
||||
return false;
|
||||
|
||||
initBorrow(borrow);
|
||||
|
||||
LLVM_DEBUG(llvm::dbgs() << "*** Canonicalize Borrow: " << borrowedValue);
|
||||
|
||||
initBorrow(BorrowedValue(arg));
|
||||
SWIFT_DEFER { liveness.clear(); };
|
||||
|
||||
RewriteInnerBorrowUses innerRewriter(*this);
|
||||
beginVisitBorrowScopeUses(); // reset the def/use worklist
|
||||
|
||||
Reference in New Issue
Block a user