[cfe-commits] r64680 - /cfe/trunk/lib/AST/ASTContext.cpp

Fariborz Jahanian fjahanian at apple.com
Mon Feb 16 14:09:27 PST 2009


Author: fjahanian
Date: Mon Feb 16 16:09:26 2009
New Revision: 64680

URL: http://llvm.org/viewvc/llvm-project?rev=64680&view=rev
Log:
Use isa<...> instead of dyn_cast<...> where result is not needed.

Modified:
    cfe/trunk/lib/AST/ASTContext.cpp

Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=64680&r1=64679&r2=64680&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Mon Feb 16 16:09:26 2009
@@ -2086,7 +2086,7 @@
     }
     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 
         // {...};





More information about the cfe-commits mailing list