aboutsummaryrefslogtreecommitdiff
path: root/lib/ARCMigrate/TransGCAttrs.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-07 18:40:32 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-07 18:40:32 +0000
commitbf8455c56cc5e328c31a2b56f5587cd0873ba0ae (patch)
treea44350cb04a276a1debaf548f60af76cca5c6e96 /lib/ARCMigrate/TransGCAttrs.cpp
parent11cbe2a7fb565678fca456f6bc2d4648ced3adb3 (diff)
[arcmt] Map property decls to their GC attributes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ARCMigrate/TransGCAttrs.cpp')
-rw-r--r--lib/ARCMigrate/TransGCAttrs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ARCMigrate/TransGCAttrs.cpp b/lib/ARCMigrate/TransGCAttrs.cpp
index 94eb8781df..70157aba3d 100644
--- a/lib/ARCMigrate/TransGCAttrs.cpp
+++ b/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<ObjCPropertyDecl>(D))
+ MigrateCtx.PropGCAttrs[PD] = MigrateCtx.GCAttrs.size() - 1;
+
return true;
}