Skip to content

Commit 20905b2

Browse files
committed
LifetimeDependenceDiagnostics comment.
1 parent b4cdbd2 commit 20905b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceDiagnostics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ let lifetimeDependenceDiagnosticsPass = FunctionPass(
5454
continue
5555
}
5656
if let apply = instruction as? FullApplySite {
57-
// Handle ~Escapable results that do not have a lifetime
58-
// dependence (@_unsafeNonescapableResult).
57+
// Handle ~Escapable results that do not have a lifetime dependence. This includes implicit initializers and
58+
// @_unsafeNonescapableResult.
5959
apply.resultOrYields.forEach {
6060
if let lifetimeDep = LifetimeDependence(unsafeApplyResult: $0,
6161
context) {

0 commit comments

Comments
 (0)