Change dyn_cast<> to isa<>. Pointed out by Anders (thanks).

llvm-svn: 69007
This commit is contained in:
Steve Naroff
2009-04-14 00:40:09 +00:00
parent 9787183b9b
commit 323827e8d0

View 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();