objc - minor comment fix up and cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Fariborz Jahanian 2011-08-22 18:34:22 +00:00
Родитель 9735c5e600
Коммит 58a764940d
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -2665,8 +2665,8 @@ Decl *Sema::ActOnMethodDeclaration(
bool Sema::CheckObjCDeclScope(Decl *D) {
if (isa<TranslationUnitDecl>(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<ObjCContainerDecl>(CurContext->getRedeclContext())) {
return false;
}

Просмотреть файл

@ -144,7 +144,7 @@ Sema::HandlePropertyInClassExtension(Scope *S,
bool *isOverridingProperty,
TypeSourceInfo *T,
tok::ObjCKeywordKind MethodImplKind) {
ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(CurContext);
ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext);
// Diagnose if this property is already in continuation class.
DeclContext *DC = CurContext;
IdentifierInfo *PropertyId = FD.D.getIdentifier();