summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-02-16 22:09:26 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-02-16 22:09:26 +0000
commitf95039cd58bb977244d04a696a5f18358ecd9f40 (patch)
tree63bab928459640670d204af4a671a1ac29458864 /clang/lib/AST/ASTContext.cpp
parenta377833888a05ebcae4654c072382fc82b640c62 (diff)
downloadbcm5719-llvm-f95039cd58bb977244d04a696a5f18358ecd9f40.tar.gz
bcm5719-llvm-f95039cd58bb977244d04a696a5f18358ecd9f40.zip
Use isa<...> instead of dyn_cast<...> where result is not needed.
llvm-svn: 64680
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-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 d7f686f1274..d2de4c37c0e 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -2086,7 +2086,7 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S,
}
else if (PointeeTy->isObjCInterfaceType()) {
if (!EncodingProperty &&
- dyn_cast<TypedefType>(PointeeTy.getTypePtr())) {
+ isa<TypedefType>(PointeeTy.getTypePtr())) {
// Another historical/compatibility reason.
// We encode the underlying type which comes out as
// {...};
OpenPOWER on IntegriCloud