From 94d55d7ecdd693788a8f3910a0da1b5ecdaa8a86 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sat, 21 Apr 2012 17:51:44 +0000 Subject: [PATCH] Remove unneeded code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155290 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDeclAttr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(D); - if (!method || !isa(method)) { + if (!method) { S.Diag(D->getLocStart(), diag::err_attribute_wrong_decl_type) << SourceRange(loc, loc) << attr.getName() << ExpectedMethod; return; -- 2.50.1