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(
684684
685685std::optional<llvm::ArrayRef<LifetimeDependenceInfo>>
686686LifetimeDependenceInfo::get (AbstractFunctionDecl *afd) {
687- if (!afd->getASTContext ().LangOpts .hasFeature (Feature::NonescapableTypes)) {
688- return std::nullopt ;
689- }
690687 assert (isa<FuncDecl>(afd) || isa<ConstructorDecl>(afd));
691688
692689 if (afd->getAttrs ().hasAttribute <LifetimeAttr>()) {
@@ -706,9 +703,6 @@ std::optional<llvm::ArrayRef<LifetimeDependenceInfo>>
706703LifetimeDependenceInfo::get (FunctionTypeRepr *funcRepr,
707704 ArrayRef<SILParameterInfo> params,
708705 ArrayRef<SILResultInfo> results, DeclContext *dc) {
709- if (!dc->getASTContext ().LangOpts .hasFeature (Feature::NonescapableTypes)) {
710- return std::nullopt ;
711- }
712706 SmallVector<LifetimeDependenceInfo, 1 > lifetimeDependencies;
713707
714708 auto getLifetimeDependenceFromDependsOnTypeModifier =
You can’t perform that action at this time.
0 commit comments