File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -718,9 +718,6 @@ std::optional<LifetimeDependenceInfo> LifetimeDependenceInfo::inferMutatingSelf(
718
718
719
719
std::optional<llvm::ArrayRef<LifetimeDependenceInfo>>
720
720
LifetimeDependenceInfo::get (AbstractFunctionDecl *afd) {
721
- if (!afd->getASTContext ().LangOpts .hasFeature (Feature::NonescapableTypes)) {
722
- return std::nullopt;
723
- }
724
721
assert (isa<FuncDecl>(afd) || isa<ConstructorDecl>(afd));
725
722
726
723
if (afd->getAttrs ().hasAttribute <LifetimeAttr>()) {
@@ -766,9 +763,6 @@ std::optional<llvm::ArrayRef<LifetimeDependenceInfo>>
766
763
LifetimeDependenceInfo::get (FunctionTypeRepr *funcRepr,
767
764
ArrayRef<SILParameterInfo> params,
768
765
ArrayRef<SILResultInfo> results, DeclContext *dc) {
769
- if (!dc->getASTContext ().LangOpts .hasFeature (Feature::NonescapableTypes)) {
770
- return std::nullopt;
771
- }
772
766
SmallVector<LifetimeDependenceInfo, 1 > lifetimeDependencies;
773
767
774
768
auto getLifetimeDependenceFromDependsOnTypeModifier =
You can’t perform that action at this time.
0 commit comments