implement parsing, AST, and basic Sema support for 'defer'.

SILGen support and diagnosing jumps out of a defer aren't done
yet.



Swift SVN r27759
This commit is contained in:
Chris Lattner
2015-04-26 15:16:37 +00:00
parent 79b976dfc3
commit ee96164996
16 changed files with 118 additions and 0 deletions

View File

@@ -700,6 +700,9 @@ struct ASTNodeBase {};
verifyCheckedBase(S);
}
void verifyChecked(DeferStmt *S) {
verifyCheckedBase(S);
}
void verifyChecked(FailStmt *S) {
// Dig out the initializer we're in (if we are).