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 4896d04 commit 7c2ee16Copy full SHA for 7c2ee16
SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceDiagnostics.swift
@@ -54,8 +54,8 @@ let lifetimeDependenceDiagnosticsPass = FunctionPass(
54
continue
55
}
56
if let apply = instruction as? FullApplySite {
57
- // Handle ~Escapable results that do not have a lifetime
58
- // dependence (@_unsafeNonescapableResult).
+ // Handle ~Escapable results that do not have a lifetime dependence. This includes implicit initializers and
+ // @_unsafeNonescapableResult.
59
apply.resultOrYields.forEach {
60
if let lifetimeDep = LifetimeDependence(unsafeApplyResult: $0,
61
context) {
0 commit comments