]> granicus.if.org Git - clang/commitdiff
Change dyn_cast<> to isa<>. Pointed out by Anders (thanks).
authorSteve Naroff <snaroff@apple.com>
Tue, 14 Apr 2009 00:40:09 +0000 (00:40 +0000)
committerSteve Naroff <snaroff@apple.com>
Tue, 14 Apr 2009 00:40:09 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69007 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 1c682175b33b9c722b312fe0c445a5bf808f5b6e..7b357318e5f51205f68f22c3c4ed395444b2fbde 100644 (file)
@@ -2084,7 +2084,7 @@ void ASTContext::getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl,
           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();