[cfe-commits] r55207 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp

Anders Carlsson andersca at mac.com
Fri Aug 22 15:10:49 PDT 2008


Author: andersca
Date: Fri Aug 22 17:10:48 2008
New Revision: 55207

URL: http://llvm.org/viewvc/llvm-project?rev=55207&view=rev
Log:
Use isa instead of dyn_cast.

Modified:
    cfe/trunk/lib/Sema/SemaDeclAttr.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=55207&r1=55206&r2=55207&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Fri Aug 22 17:10:48 2008
@@ -407,8 +407,7 @@
     priority = Idx.getZExtValue();
   }
   
-  FunctionDecl *Fn = dyn_cast<FunctionDecl>(d);
-  if (!Fn) {
+  if (!isa<FunctionDecl>(d)) {
     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type,
            "destructor", "function");
     return;





More information about the cfe-commits mailing list