diff options
author | Puyan Lotfi <puyan@puyan.org> | 2020-04-23 02:20:56 -0400 |
---|---|---|
committer | Puyan Lotfi <puyan@puyan.org> | 2020-04-23 17:21:25 -0400 |
commit | 9721fbf85b83c1cb67cea542c5558f99a07766cf (patch) | |
tree | 2dc3ecc4cd3fa0f73a367db1f97272920d27609e /clang/lib/Sema/SemaPseudoObject.cpp | |
parent | b53fd70b9eccdcd228c26b3e12dc984fe9acf23b (diff) | |
download | llvm-9721fbf85b83c1cb67cea542c5558f99a07766cf.zip llvm-9721fbf85b83c1cb67cea542c5558f99a07766cf.tar.gz llvm-9721fbf85b83c1cb67cea542c5558f99a07766cf.tar.bz2 |
[NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec.
This is a code clean up of the PropertyAttributeKind and
ObjCPropertyAttributeKind enums in ObjCPropertyDecl and ObjCDeclSpec that are
exactly identical. This non-functional change consolidates these enums
into one. The changes are to many files across clang (and comments in LLVM) so
that everything refers to the new consolidated enum in DeclObjCCommon.h.
2nd Landing Attempt...
Differential Revision: https://reviews.llvm.org/D77233
Diffstat (limited to 'clang/lib/Sema/SemaPseudoObject.cpp')
-rw-r--r-- | clang/lib/Sema/SemaPseudoObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaPseudoObject.cpp b/clang/lib/Sema/SemaPseudoObject.cpp index 4413b24..0ed4522 100644 --- a/clang/lib/Sema/SemaPseudoObject.cpp +++ b/clang/lib/Sema/SemaPseudoObject.cpp @@ -580,7 +580,7 @@ bool ObjCPropertyOpBuilder::isWeakProperty() const { QualType T; if (RefExpr->isExplicitProperty()) { const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); - if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak) + if (Prop->getPropertyAttributes() & ObjCPropertyAttribute::kind_weak) return true; T = Prop->getType(); |