Skip to content

Commit d1e202b

Browse files
committed
Comment LifetimeTracker.
Swift SVN r28581
1 parent 9d8e5df commit d1e202b

File tree

1 file changed

+6
-0
lines changed
  • include/swift/SILPasses/Utils

1 file changed

+6
-0
lines changed

include/swift/SILPasses/Utils/Local.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ void releasePartialApplyCapturedArg(
155155
/// This helper class represents the lifetime of a single
156156
/// SILValue. The value itself is held and the lifetime endpoints of
157157
/// that value are computed.
158+
///
159+
/// This does not compute a set of jointly postdominating use points. Instead it
160+
/// assumes that the value's existing uses already jointly postdominate the
161+
/// definition. This makes sense for values that are returned +1 from an
162+
/// instruction, like partial_apply, and therefore must be released on all paths
163+
/// via strong_release or apply.
158164
class LifetimeTracker {
159165
SILValue TheValue;
160166

0 commit comments

Comments
 (0)