From 7cee28858674d233903e92b7a0c49b07b05ed3d3 Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Sat, 21 Dec 2019 11:09:30 -0500 Subject: [PATCH] Fix `-Wunused-variable` warning. NFC. --- clang/lib/Sema/SemaDeclObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 4fdddfbb7a7e..5fdf6aeed5b4 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -4776,7 +4776,7 @@ Decl *Sema::ActOnMethodDeclaration( if (auto *Cat = dyn_cast(IMD->getDeclContext())) decl = Cat->IsClassExtension() ? 1 : 2; - if (auto *Cat = dyn_cast(ImpDecl)) + if (isa(ImpDecl)) impl = 1 + (decl != 0); Diag(ObjCMethod->getLocation(),