diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 49fcfbf2f3..afcf3cc63a 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -2712,8 +2712,10 @@ Decl *Sema::ActOnMethodDeclaration( IMD = IDecl->lookupMethod(ObjCMethod->getSelector(), ObjCMethod->isInstanceMethod()); if (ObjCMethod->hasAttrs() && - containsInvalidMethodImplAttribute(IMD, ObjCMethod->getAttrs())) + containsInvalidMethodImplAttribute(IMD, ObjCMethod->getAttrs())) { Diag(EndLoc, diag::warn_attribute_method_def); + Diag(IMD->getLocation(), diag::note_method_declared_at); + } } else { cast<DeclContext>(ClassDecl)->addDecl(ObjCMethod); } |