forked from OSchip/llvm-project
Fix variable ‘LookedUpGetterSetter’ set but not used warning. NFCI.
This commit is contained in:
parent
e24e6ae7a0
commit
c2fca2d9af
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue