summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorRyan Flynn <pizza@parseerror.com>2009-08-12 23:36:28 +0000
committerRyan Flynn <pizza@parseerror.com>2009-08-12 23:36:28 +0000
commita8fae2ebf4752144c48fee979486e8540b726913 (patch)
tree48e10b8a1fde2d3f217d9bb6b4884fe4e39f323b /clang/lib/Sema/SemaDeclAttr.cpp
parentbbd5e8c2cfc19b796fd407727d403bd3098791f7 (diff)
downloadbcm5719-llvm-a8fae2ebf4752144c48fee979486e8540b726913.tar.gz
bcm5719-llvm-a8fae2ebf4752144c48fee979486e8540b726913.zip
change a dyn_cast to cast
llvm-svn: 78862
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index d5d3840569b..8a4ae3b4005 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -437,7 +437,7 @@ static void HandleMallocAttr(Decl *d, const AttributeList &Attr, Sema &S) {
return;
}
- if (FunctionDecl *FD = dyn_cast<FunctionDecl>(d)) {
+ if (FunctionDecl *FD = cast<FunctionDecl>(d)) {
if (!FD->getResultType()->isPointerType()) {
S.Diag(Attr.getLoc(), diag::warn_attribute_malloc_pointer_only);
return;
OpenPOWER on IntegriCloud