aboutsummaryrefslogtreecommitdiff
path: root/lib/ARCMigrate/TransAutoreleasePool.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-23 21:21:33 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-23 21:21:33 +0000
commitb1094a0621c3bf91141f7cd9684ca80b357ae61e (patch)
treede83abdb06cf4b4b7d3b65b31bfa8ca6d1357569 /lib/ARCMigrate/TransAutoreleasePool.cpp
parent7707c75ff98e26aa939557e3bf80490556c00ae4 (diff)
[arcmt] Fully migrate ObjC++ classes, rdar://9660007.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ARCMigrate/TransAutoreleasePool.cpp')
-rw-r--r--lib/ARCMigrate/TransAutoreleasePool.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ARCMigrate/TransAutoreleasePool.cpp b/lib/ARCMigrate/TransAutoreleasePool.cpp
index 602ac0cd02..5b8485432c 100644
--- a/lib/ARCMigrate/TransAutoreleasePool.cpp
+++ b/lib/ARCMigrate/TransAutoreleasePool.cpp
@@ -69,8 +69,8 @@ namespace {
class AutoreleasePoolRewriter
: public RecursiveASTVisitor<AutoreleasePoolRewriter> {
public:
- AutoreleasePoolRewriter(Decl *D, MigrationPass &pass)
- : Dcl(D), Body(0), Pass(pass) {
+ AutoreleasePoolRewriter(MigrationPass &pass)
+ : Body(0), Pass(pass) {
PoolII = &pass.Ctx.Idents.get("NSAutoreleasePool");
DrainSel = pass.Ctx.Selectors.getNullarySelector(
&pass.Ctx.Idents.get("drain"));
@@ -411,7 +411,6 @@ private:
return S;
}
- Decl *Dcl;
Stmt *Body;
MigrationPass &Pass;