From: Steve Naroff Date: Tue, 14 Apr 2009 00:40:09 +0000 (+0000) Subject: Change dyn_cast<> to isa<>. Pointed out by Anders (thanks). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb3fde337fb712c0e6da8790d431621be4793048;p=clang Change dyn_cast<> to isa<>. Pointed out by Anders (thanks). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69007 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 1c682175b3..7b357318e5 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -2084,7 +2084,7 @@ void ASTContext::getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl, dyn_cast(PType->getCanonicalTypeInternal())) { // Use array's original type only if it has known number of // elements. - if (!dyn_cast(AT)) + if (!isa(AT)) PType = PVDecl->getType(); } else if (PType->isFunctionType()) PType = PVDecl->getType();