Skip to content

Commit 5ab9a00

Browse files
committed
[CanonicalizeGuaranteedValue] Cleared everything.
1 parent 88103a7 commit 5ab9a00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/SILOptimizer/Utils/CanonicalizeBorrowScope.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ class CanonicalizeBorrowScope {
142142
assert(borrow && persistentCopies.empty() &&
143143
(!liveness || liveness->empty()));
144144

145+
borrowedValue = BorrowedValue();
146+
defUseWorklist.clear();
147+
blockWorklist.clear();
148+
persistentCopies.clear();
145149
updatedCopies.clear();
150+
146151
borrowedValue = borrow;
147152
if (liveness)
148153
liveness->initializeDef(borrowedValue.value);

0 commit comments

Comments
 (0)