]> granicus.if.org Git - clang/commitdiff
Changed a variable name to match what it represents
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 10 Nov 2009 19:31:09 +0000 (19:31 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 10 Nov 2009 19:31:09 +0000 (19:31 +0000)
(Ted's feedback).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 455671596f2b844a5ad6ac4547f2859b6b91cfd1..6487835c8aa7f3440e545e1dff1f2452a59f8306 100644 (file)
@@ -1910,12 +1910,12 @@ Sema::DeclPtrTy Sema::ActOnProperty(Scope *S, SourceLocation AtLoc,
           // with continuation class's readwrite property attribute!
           unsigned PIkind = PIDecl->getPropertyAttributes();
           if (isReadWrite && (PIkind & ObjCPropertyDecl::OBJC_PR_readonly)) {
-            unsigned assignRetainCopyNonatomic = 
+            unsigned retainCopyNonatomic = 
               (ObjCPropertyDecl::OBJC_PR_retain |
                ObjCPropertyDecl::OBJC_PR_copy |
                ObjCPropertyDecl::OBJC_PR_nonatomic);
-            if ((Attributes & assignRetainCopyNonatomic) !=
-                (PIkind & assignRetainCopyNonatomic)) {
+            if ((Attributes & retainCopyNonatomic) !=
+                (PIkind & retainCopyNonatomic)) {
               Diag(AtLoc, diag::warn_property_attr_mismatch);
               Diag(PIDecl->getLocation(), diag::note_property_declare);
             }