From: Fariborz Jahanian Date: Sat, 21 Apr 2012 17:51:44 +0000 (+0000) Subject: Remove unneeded code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94d55d7ecdd693788a8f3910a0da1b5ecdaa8a86;p=clang Remove unneeded code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155290 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;