diff --git a/clang/lib/ARCMigrate/Transforms.cpp b/clang/lib/ARCMigrate/Transforms.cpp index 86812a5f8771..96c472c52f12 100644 --- a/clang/lib/ARCMigrate/Transforms.cpp +++ b/clang/lib/ARCMigrate/Transforms.cpp @@ -302,6 +302,7 @@ namespace { class ASTTransform : public RecursiveASTVisitor { MigrationContext &MigrateCtx; + typedef RecursiveASTVisitor base; public: ASTTransform(MigrationContext &MigrateCtx) : MigrateCtx(MigrateCtx) { } @@ -315,7 +316,7 @@ public: E = MigrateCtx.traversers_end(); I != E; ++I) (*I)->traverseObjCImplementation(ImplCtx); - return true; + return base::TraverseObjCImplementationDecl(D); } bool TraverseStmt(Stmt *rootS) { diff --git a/clang/test/ARCMT/GC.m b/clang/test/ARCMT/GC.m index e49bca8fa3ef..28846792ad43 100644 --- a/clang/test/ARCMT/GC.m +++ b/clang/test/ARCMT/GC.m @@ -66,4 +66,8 @@ __attribute__((objc_arc_weak_reference_unavailable)) @implementation I4Impl @synthesize pw1, pw2, ps, pds, pds2; + +-(void)test1:(CFTypeRef *)cft { + id x = NSMakeCollectable(cft); +} @end diff --git a/clang/test/ARCMT/GC.m.result b/clang/test/ARCMT/GC.m.result index 67a70e3dd24d..aaa5ee5b5693 100644 --- a/clang/test/ARCMT/GC.m.result +++ b/clang/test/ARCMT/GC.m.result @@ -61,4 +61,8 @@ __attribute__((objc_arc_weak_reference_unavailable)) @implementation I4Impl @synthesize pw1, pw2, ps, pds, pds2; + +-(void)test1:(CFTypeRef *)cft { + id x = CFBridgingRelease(cft); +} @end