[cfe-commits] r67978 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp

Chris Lattner sabre at nondot.org
Sat Mar 28 21:30:20 PDT 2009


Author: lattner
Date: Sat Mar 28 23:30:19 2009
New Revision: 67978

URL: http://llvm.org/viewvc/llvm-project?rev=67978&view=rev
Log:
tighten this up, the decl *must* be a declcontext, no need for the dynamic check.

Modified:
    cfe/trunk/lib/Sema/SemaDeclObjC.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=67978&r1=67977&r2=67978&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Sat Mar 28 23:30:19 2009
@@ -1409,7 +1409,7 @@
   
   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 ? 





More information about the cfe-commits mailing list