We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d8e5df commit d1e202bCopy full SHA for d1e202b
include/swift/SILPasses/Utils/Local.h
@@ -155,6 +155,12 @@ void releasePartialApplyCapturedArg(
155
/// This helper class represents the lifetime of a single
156
/// SILValue. The value itself is held and the lifetime endpoints of
157
/// 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.
164
class LifetimeTracker {
165
SILValue TheValue;
166
0 commit comments