Fix `-Wunused-variable` warning. NFC.

This commit is contained in:
Michael Liao 2019-12-21 11:09:30 -05:00
parent 79c7fa31f3
commit 7cee288586
1 changed files with 1 additions and 1 deletions

View File

@ -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(),