Rewrite the way we build capture list so we don't miss capturing "this". <rdar://problem/12583581>.

Swift SVN r3093
This commit is contained in:
Eli Friedman
2012-10-30 22:33:18 +00:00
parent 5695162bed
commit b62d47a2e5
8 changed files with 61 additions and 67 deletions

View File

@@ -1335,6 +1335,7 @@ public:
ArrayRef<ValueDecl*> getCaptures() { return Captures; }
void setCaptures(ArrayRef<ValueDecl*> C) { Captures = C; }
void computeCaptures(ASTContext &C);
bool isNotCaptured() { return IsNotCaptured; }
void setIsNotCaptured(bool v) { IsNotCaptured = v; }