Skip to content

Commit d330cb6

Browse files
committed
NFC: Update comment in PreCheckReturnStmtRequest::evaluate
1 parent dc4b89f commit d330cb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Sema/TypeCheckStmt.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,8 +1709,9 @@ Stmt *PreCheckReturnStmtRequest::evaluate(Evaluator &evaluator, ReturnStmt *RS,
17091709

17101710
auto *E = RS->getResult();
17111711

1712-
// In an initializer, the only expression allowed is "nil", which indicates
1713-
// failure from a failable initializer.
1712+
// In an initializer, the only expressions allowed are "nil", which indicates
1713+
// failure from a failable initializer or "self" in the case of ~Escapable
1714+
// initializers with explicit lifetime dependence.
17141715
if (auto *ctor =
17151716
dyn_cast_or_null<ConstructorDecl>(fn->getAbstractFunctionDecl())) {
17161717

0 commit comments

Comments
 (0)