summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-04-21 17:51:44 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-04-21 17:51:44 +0000
commita53e5d79fc0a69cddd3380d2973cfe0f230e045d (patch)
tree2b84947cd6bbfe8cf1fd5d08040d60633384a08e /clang/lib/Sema/SemaDeclAttr.cpp
parent8b987a99767fa8fc6e848a8ae6fb8b19ed2c3d29 (diff)
downloadbcm5719-llvm-a53e5d79fc0a69cddd3380d2973cfe0f230e045d.tar.gz
bcm5719-llvm-a53e5d79fc0a69cddd3380d2973cfe0f230e045d.zip
Remove unneeded code.
llvm-svn: 155290
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 9004508a47e..843d5a47316 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -3334,7 +3334,7 @@ static void handleObjCReturnsInnerPointerAttr(Sema &S, Decl *D,
ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(D);
- if (!method || !isa<ObjCMethodDecl>(method)) {
+ if (!method) {
S.Diag(D->getLocStart(), diag::err_attribute_wrong_decl_type)
<< SourceRange(loc, loc) << attr.getName() << ExpectedMethod;
return;
OpenPOWER on IntegriCloud