diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-21 17:51:44 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-04-21 17:51:44 +0000 |
commit | 94d55d7ecdd693788a8f3910a0da1b5ecdaa8a86 (patch) | |
tree | 7b15c47eec896616d5ca3eec3598c302d644ec78 /lib/Sema/SemaDeclAttr.cpp | |
parent | 7bb698aa054de4c0e0aa23973b2c62dac9611262 (diff) |
Remove unneeded code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 9004508a47..843d5a4731 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/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; |