]> granicus.if.org Git - clang/commitdiff
tighten this up, the decl *must* be a declcontext, no need for the dynamic check.
authorChris Lattner <sabre@nondot.org>
Sun, 29 Mar 2009 04:30:19 +0000 (04:30 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 29 Mar 2009 04:30:19 +0000 (04:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67978 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 8809eb9442f5fdfffafcbb71398e6fd741466c1c..d84a0d1726123114ecfbec7f094c10fd2185f9e4 100644 (file)
@@ -1409,7 +1409,7 @@ Sema::DeclPtrTy Sema::ActOnMethodDeclaration(
   
   ObjCMethodDecl* ObjCMethod = 
     ObjCMethodDecl::Create(Context, MethodLoc, EndLoc, Sel, resultDeclType,
-                           dyn_cast<DeclContext>(ClassDecl), 
+                           cast<DeclContext>(ClassDecl), 
                            MethodType == tok::minus, isVariadic,
                            false,
                            MethodDeclKind == tok::objc_optional ?