forked from OSchip/llvm-project
Fix `-Wunused-variable` warning. NFC.
This commit is contained in:
parent
79c7fa31f3
commit
7cee288586
|
@ -4776,7 +4776,7 @@ Decl *Sema::ActOnMethodDeclaration(
|
|||
if (auto *Cat = dyn_cast<ObjCCategoryDecl>(IMD->getDeclContext()))
|
||||
decl = Cat->IsClassExtension() ? 1 : 2;
|
||||
|
||||
if (auto *Cat = dyn_cast<ObjCCategoryImplDecl>(ImpDecl))
|
||||
if (isa<ObjCCategoryImplDecl>(ImpDecl))
|
||||
impl = 1 + (decl != 0);
|
||||
|
||||
Diag(ObjCMethod->getLocation(),
|
||||
|
|
Loading…
Reference in New Issue