aboutsummaryrefslogtreecommitdiff
path: root/lib/ARCMigrate/TransGCAttrs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ARCMigrate/TransGCAttrs.cpp')
-rw-r--r--lib/ARCMigrate/TransGCAttrs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ARCMigrate/TransGCAttrs.cpp b/lib/ARCMigrate/TransGCAttrs.cpp
index dc22375048..607e5a0f3d 100644
--- a/lib/ARCMigrate/TransGCAttrs.cpp
+++ b/lib/ARCMigrate/TransGCAttrs.cpp
@@ -326,7 +326,8 @@ static void checkAllProps(MigrationContext &MigrateCtx,
for (unsigned i = 0, e = AllProps.size(); i != e; ++i) {
ObjCPropertyDecl *PD = AllProps[i];
if (PD->getPropertyAttributesAsWritten() &
- ObjCPropertyDecl::OBJC_PR_assign) {
+ (ObjCPropertyDecl::OBJC_PR_assign |
+ ObjCPropertyDecl::OBJC_PR_readonly)) {
SourceLocation AtLoc = PD->getAtLoc();
if (AtLoc.isInvalid())
continue;