From: Fariborz Jahanian Date: Mon, 19 Sep 2011 16:32:32 +0000 (+0000) Subject: CurContext cannot be null ever. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84e0ccff7a6e51d7b81fd58686b493a4880dd44d;p=clang CurContext cannot be null ever. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140022 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index a4f782227a..2bb54560b7 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -508,7 +508,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, IdentifierInfo *PropertyIvar, SourceLocation PropertyIvarLoc) { ObjCContainerDecl *ClassImpDecl = - dyn_cast_or_null(CurContext); + dyn_cast(CurContext); // Make sure we have a context for the property implementation declaration. if (!ClassImpDecl) { Diag(AtLoc, diag::error_missing_property_context);