mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 02:00:03 +08:00
Change dyn_cast<> to isa<>. Pointed out by Anders (thanks).
llvm-svn: 69007
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user