diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-19 16:32:32 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-09-19 16:32:32 +0000 |
commit | a195a5182c7e3111ad5a0ae1f59f5d6b016ef6d3 (patch) | |
tree | fa0530a78018139c1cb609df0e52eb445ed6efb6 | |
parent | 631dfc6229d792c4c46b8f511ff62e4911773b0c (diff) | |
download | bcm5719-llvm-a195a5182c7e3111ad5a0ae1f59f5d6b016ef6d3.tar.gz bcm5719-llvm-a195a5182c7e3111ad5a0ae1f59f5d6b016ef6d3.zip |
CurContext cannot be null ever.
llvm-svn: 140022
-rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index a4f782227af..2bb54560b76 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -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); |