mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
add a testcase that fails with the simple-and-obvious implementation
of defer, and add a comment to DeferStmt that references the issue. Swift SVN r27853
This commit is contained in:
@@ -188,7 +188,10 @@ public:
|
||||
/// tmpClosure() // This is emitted on each path that needs to run this.
|
||||
///
|
||||
/// As such, the body of the 'defer' is actually type checked within the
|
||||
/// closure's DeclContext.
|
||||
/// closure's DeclContext. We do this because of unfortunateness in SILGen,
|
||||
/// not every expression (e.g. OpenExistentialExpr can be multiply emitted in a
|
||||
/// composable way). When this gets fixed, patches r27767 and r27768 can be
|
||||
/// reverted to go back to the simpler and more obvious representation.
|
||||
///
|
||||
class DeferStmt : public Stmt {
|
||||
SourceLoc DeferLoc;
|
||||
|
||||
Reference in New Issue
Block a user