summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-04-14 00:40:09 +0000
committerSteve Naroff <snaroff@apple.com>2009-04-14 00:40:09 +0000
commit323827e8d053ec349e4e1e14ee1ce0c2ac71eae8 (patch)
tree85e7d3dc3713a1bb05ac06faa19a3e439fba0c70 /clang/lib
parent9787183b9b01ebe645ce8436e12e14c2d41141fb (diff)
downloadbcm5719-llvm-323827e8d053ec349e4e1e14ee1ce0c2ac71eae8.tar.gz
bcm5719-llvm-323827e8d053ec349e4e1e14ee1ce0c2ac71eae8.zip
Change dyn_cast<> to isa<>. Pointed out by Anders (thanks).
llvm-svn: 69007
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 1c682175b33..7b357318e5f 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -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();
OpenPOWER on IntegriCloud