summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-08-22 22:10:48 +0000
committerAnders Carlsson <andersca@mac.com>2008-08-22 22:10:48 +0000
commit8e82b7fd0f75c4a1212de1b4a05301c1ba31e208 (patch)
tree93ea451fe91459d5698d08d9d319f0dc7fb1e7c6 /clang/lib/Sema/SemaDeclAttr.cpp
parentf9c90d3ceed36681ce227e0f381a2a41c964e4a4 (diff)
downloadbcm5719-llvm-8e82b7fd0f75c4a1212de1b4a05301c1ba31e208.tar.gz
bcm5719-llvm-8e82b7fd0f75c4a1212de1b4a05301c1ba31e208.zip
Use isa instead of dyn_cast.
llvm-svn: 55207
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 3ece5fce9c4..fd1b3e7a49d 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -407,8 +407,7 @@ static void HandleDestructorAttr(Decl *d, const AttributeList &Attr, Sema &S) {
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;
OpenPOWER on IntegriCloud