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 dc8778f commit c364181Copy full SHA for c364181
include/swift/SIL/SILInstruction.h
@@ -8815,6 +8815,14 @@ class MarkDependenceInst
8815
uint8_t(MarkDependenceKind::Escaping);
8816
}
8817
8818
+ // True if the dependence is limited to the scope of an OSSA lifetime. Only
8819
+ // for nonescaping dependencies with owned escapable values.
8820
+ bool hasScopedLifetime() const {
8821
+ return isNonEscaping() && getType().isObject()
8822
+ && getOwnershipKind() == OwnershipKind::Owned
8823
+ && getType().isEscapable(*getFunction());
8824
+ }
8825
+
8826
/// Visit the instructions that end the lifetime the dependent value.
8827
///
8828
/// Preconditions:
0 commit comments