]> granicus.if.org Git - clang/commitdiff
CurContext cannot be null ever.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 19 Sep 2011 16:32:32 +0000 (16:32 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 19 Sep 2011 16:32:32 +0000 (16:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140022 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaObjCProperty.cpp

index a4f782227afeb4ec365499ecb333dc1c1d9fb6cf..2bb54560b76649c5999c2c1599e3eab991a8ee7b 100644 (file)
@@ -508,7 +508,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S,
                                   IdentifierInfo *PropertyIvar,
                                   SourceLocation PropertyIvarLoc) {
   ObjCContainerDecl *ClassImpDecl =
-    dyn_cast_or_null<ObjCContainerDecl>(CurContext);
+    dyn_cast<ObjCContainerDecl>(CurContext);
   // Make sure we have a context for the property implementation declaration.
   if (!ClassImpDecl) {
     Diag(AtLoc, diag::error_missing_property_context);