diff options
Diffstat (limited to 'clang/lib/ARCMigrate/TransGCAttrs.cpp')
-rw-r--r-- | clang/lib/ARCMigrate/TransGCAttrs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<ObjCPropertyDecl>(D)) + MigrateCtx.PropGCAttrs[PD] = MigrateCtx.GCAttrs.size() - 1; + return true; } |