[cfe-commits] r155290 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Fariborz Jahanian
fjahanian at apple.com
Sat Apr 21 10:51:45 PDT 2012
Author: fjahanian
Date: Sat Apr 21 12:51:44 2012
New Revision: 155290
URL: http://llvm.org/viewvc/llvm-project?rev=155290&view=rev
Log:
Remove unneeded code.
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=155290&r1=155289&r2=155290&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Sat Apr 21 12:51:44 2012
@@ -3334,7 +3334,7 @@
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;
More information about the cfe-commits
mailing list