[cfe-commits] r140022 - /cfe/trunk/lib/Sema/SemaObjCProperty.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Sep 19 09:32:33 PDT 2011
Author: fjahanian
Date: Mon Sep 19 11:32:32 2011
New Revision: 140022
URL: http://llvm.org/viewvc/llvm-project?rev=140022&view=rev
Log:
CurContext cannot be null ever.
Modified:
cfe/trunk/lib/Sema/SemaObjCProperty.cpp
Modified: cfe/trunk/lib/Sema/SemaObjCProperty.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaObjCProperty.cpp?rev=140022&r1=140021&r2=140022&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaObjCProperty.cpp (original)
+++ cfe/trunk/lib/Sema/SemaObjCProperty.cpp Mon Sep 19 11:32:32 2011
@@ -508,7 +508,7 @@
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);
More information about the cfe-commits
mailing list