[cfe-commits] r69007 - /cfe/trunk/lib/AST/ASTContext.cpp

Steve Naroff snaroff at apple.com
Mon Apr 13 17:40:09 PDT 2009


Author: snaroff
Date: Mon Apr 13 19:40:09 2009
New Revision: 69007

URL: http://llvm.org/viewvc/llvm-project?rev=69007&view=rev
Log:
Change dyn_cast<> to isa<>. Pointed out by Anders (thanks).

Modified:
    cfe/trunk/lib/AST/ASTContext.cpp

Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=69007&r1=69006&r2=69007&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Mon Apr 13 19:40:09 2009
@@ -2084,7 +2084,7 @@
           dyn_cast<ArrayType>(PType->getCanonicalTypeInternal())) {
       // Use array's original type only if it has known number of
       // elements.
-      if (!dyn_cast<ConstantArrayType>(AT))
+      if (!isa<ConstantArrayType>(AT))
         PType = PVDecl->getType();
     } else if (PType->isFunctionType())
       PType = PVDecl->getType();





More information about the cfe-commits mailing list