Skip to content

Commit 3b737ca

Browse files
committed
Add InteriorLiveness computeBoundary wrapper
1 parent 0c23901 commit 3b737ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/swift/SIL/OwnershipLiveness.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ class InteriorLiveness : public OSSALiveness {
241241
void compute(const DominanceInfo *domInfo,
242242
InnerScopeHandlerRef handleInnerScope = InnerScopeHandlerRef());
243243

244+
/// Compute the boundary from the blocks discovered during liveness analysis.
245+
void computeBoundary(PrunedLivenessBoundary &boundary) const {
246+
liveness.computeBoundary(boundary);
247+
}
248+
244249
AddressUseKind getAddressUseKind() const { return addressUseKind; }
245250

246251
ArrayRef<SILValue> getUnenclosedPhis() const { return unenclosedPhis; }

0 commit comments

Comments
 (0)