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 @@ -684,9 +684,6 @@ std::optional<LifetimeDependenceInfo> LifetimeDependenceInfo::inferMutatingSelf(
684
684
685
685
std::optional<llvm::ArrayRef<LifetimeDependenceInfo>>
686
686
LifetimeDependenceInfo::get (AbstractFunctionDecl *afd) {
687
- if (!afd->getASTContext ().LangOpts .hasFeature (Feature::NonescapableTypes)) {
688
- return std::nullopt;
689
- }
690
687
assert (isa<FuncDecl>(afd) || isa<ConstructorDecl>(afd));
691
688
692
689
if (afd->getAttrs ().hasAttribute <LifetimeAttr>()) {
@@ -706,9 +703,6 @@ std::optional<llvm::ArrayRef<LifetimeDependenceInfo>>
706
703
LifetimeDependenceInfo::get (FunctionTypeRepr *funcRepr,
707
704
ArrayRef<SILParameterInfo> params,
708
705
ArrayRef<SILResultInfo> results, DeclContext *dc) {
709
- if (!dc->getASTContext ().LangOpts .hasFeature (Feature::NonescapableTypes)) {
710
- return std::nullopt;
711
- }
712
706
SmallVector<LifetimeDependenceInfo, 1 > lifetimeDependencies;
713
707
714
708
auto getLifetimeDependenceFromDependsOnTypeModifier =
You can’t perform that action at this time.
0 commit comments