From 0dd98a4c518eb93a7f5ddbd9b2f0ca76d99914e8 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 7 Nov 2011 18:40:32 +0000 Subject: [arcmt] Map property decls to their GC attributes. llvm-svn: 143978 --- clang/lib/ARCMigrate/TransGCAttrs.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/ARCMigrate/TransGCAttrs.cpp') diff --git a/clang/lib/ARCMigrate/TransGCAttrs.cpp b/clang/lib/ARCMigrate/TransGCAttrs.cpp index 94eb8781dfe..70157aba3d6 100644 --- a/clang/lib/ARCMigrate/TransGCAttrs.cpp +++ b/clang/lib/ARCMigrate/TransGCAttrs.cpp @@ -108,6 +108,10 @@ public: Attr.ModifiedType = TL.getModifiedLoc().getType(); Attr.Dcl = D; Attr.FullyMigratable = FullyMigratable; + + if (ObjCPropertyDecl *PD = dyn_cast_or_null(D)) + MigrateCtx.PropGCAttrs[PD] = MigrateCtx.GCAttrs.size() - 1; + return true; } -- cgit v1.2.3