From: Chris Lattner Date: Sun, 29 Mar 2009 04:30:19 +0000 (+0000) Subject: tighten this up, the decl *must* be a declcontext, no need for the dynamic check. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32d3f9cee651b8f7feb34f99ccce00e6fc33d6a0;p=clang tighten this up, the decl *must* be a declcontext, no need for the dynamic check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67978 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 8809eb9442..d84a0d1726 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -1409,7 +1409,7 @@ Sema::DeclPtrTy Sema::ActOnMethodDeclaration( ObjCMethodDecl* ObjCMethod = ObjCMethodDecl::Create(Context, MethodLoc, EndLoc, Sel, resultDeclType, - dyn_cast(ClassDecl), + cast(ClassDecl), MethodType == tok::minus, isVariadic, false, MethodDeclKind == tok::objc_optional ?