diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-12-19 07:18:12 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-12-19 07:18:12 +0000 |
| commit | 7967fc14b912d9e355570f1f9db8ccb7d7518d94 (patch) | |
| tree | 98b80fd825ad870c307c45f4dc0839998cb17f98 /clang/lib/Sema/SemaChecking.cpp | |
| parent | c467933dc723c3fff94fd1464c3870dca512d999 (diff) | |
| download | bcm5719-llvm-7967fc14b912d9e355570f1f9db8ccb7d7518d94.tar.gz bcm5719-llvm-7967fc14b912d9e355570f1f9db8ccb7d7518d94.zip | |
Rename the 'Attributes' class to 'Attribute'. It's going to represent a single attribute in the future.
llvm-svn: 170500
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 095d25aa027..6cb8659d900 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -5806,8 +5806,8 @@ void Sema::checkUnsafeExprAssigns(SourceLocation Loc, if (!PD) return; - unsigned Attributes = PD->getPropertyAttributes(); - if (Attributes & ObjCPropertyDecl::OBJC_PR_assign) { + unsigned Attribute = PD->getPropertyAttributes(); + if (Attribute & ObjCPropertyDecl::OBJC_PR_assign) { // when 'assign' attribute was not explicitly specified // by user, ignore it and rely on property type itself // for lifetime info. @@ -5825,7 +5825,7 @@ void Sema::checkUnsafeExprAssigns(SourceLocation Loc, RHS = cast->getSubExpr(); } } - else if (Attributes & ObjCPropertyDecl::OBJC_PR_weak) { + else if (Attribute & ObjCPropertyDecl::OBJC_PR_weak) { while (ImplicitCastExpr *cast = dyn_cast<ImplicitCastExpr>(RHS)) { if (cast->getCastKind() == CK_ARCConsumeObject) { Diag(Loc, diag::warn_arc_retained_assign) |

