summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-09 17:23:53 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-09 17:40:49 +0000
commitc2fca2d9afa7fe31bfd2389bf1a9fb46a11cca63 (patch)
treea32f3a63f33cb4a99b23b020be3bd082a49f06e6 /clang/lib/Sema/SemaObjCProperty.cpp
parente24e6ae7a0c8e2df0600d853440df7d72c71e063 (diff)
downloadbcm5719-llvm-c2fca2d9afa7fe31bfd2389bf1a9fb46a11cca63.tar.gz
bcm5719-llvm-c2fca2d9afa7fe31bfd2389bf1a9fb46a11cca63.zip
Fix variable ‘LookedUpGetterSetter’ set but not used warning. NFCI.
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 427def1b94e..558a754a445 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -2175,7 +2175,6 @@ Sema::AtomicPropertySetterGetterRules (ObjCImplDecl* IMPDecl,
const ObjCPropertyDecl *Property = I->second;
ObjCMethodDecl *GetterMethod = nullptr;
ObjCMethodDecl *SetterMethod = nullptr;
- bool LookedUpGetterSetter = false;
unsigned Attributes = Property->getPropertyAttributes();
unsigned AttributesAsWritten = Property->getPropertyAttributesAsWritten();
@@ -2192,7 +2191,6 @@ Sema::AtomicPropertySetterGetterRules (ObjCImplDecl* IMPDecl,
GetterMethod = nullptr;
if (SetterMethod && SetterMethod->isSynthesizedAccessorStub())
SetterMethod = nullptr;
- LookedUpGetterSetter = true;
if (GetterMethod) {
Diag(GetterMethod->getLocation(),
diag::warn_default_atomic_custom_getter_setter)
OpenPOWER on IntegriCloud