From 58a764940df0cd41767367eb2f4fced6f374176b Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 22 Aug 2011 18:34:22 +0000 Subject: [PATCH] objc - minor comment fix up and cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138253 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDeclObjC.cpp | 4 ++-- lib/Sema/SemaObjCProperty.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 35e32d4ad9..92fe9ec6ee 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -2665,8 +2665,8 @@ Decl *Sema::ActOnMethodDeclaration( bool Sema::CheckObjCDeclScope(Decl *D) { if (isa(CurContext->getRedeclContext())) return false; - // Following is also an error. But it is caused my a missing @end - // and diagnostic is issued elsewere. + // Following is also an error. But it is caused by a missing @end + // and diagnostic is issued elsewhere. if (isa(CurContext->getRedeclContext())) { return false; } diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index ddb7eebd86..a5fb31afaf 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -144,7 +144,7 @@ Sema::HandlePropertyInClassExtension(Scope *S, bool *isOverridingProperty, TypeSourceInfo *T, tok::ObjCKeywordKind MethodImplKind) { - ObjCCategoryDecl *CDecl = dyn_cast(CurContext); + ObjCCategoryDecl *CDecl = cast(CurContext); // Diagnose if this property is already in continuation class. DeclContext *DC = CurContext; IdentifierInfo *PropertyId = FD.D.getIdentifier(); -- 2.40.0