diff options
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 4fdddfbb7a7..5fdf6aeed5b 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<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(), |