]> granicus.if.org Git - clang/commitdiff
For the "'@end' is missing in implementation context" point at the location of '@'.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 27 Oct 2011 00:09:29 +0000 (00:09 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 27 Oct 2011 00:09:29 +0000 (00:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143084 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index f3b7ad713dc71f722a3465a7596247a356d5d797..1632e092e3b23f4a4fa918b9f5cb5af4d1a8b28a 100644 (file)
@@ -2142,7 +2142,7 @@ void Sema::ActOnAtEnd(Scope *S, SourceRange AtEnd,
   if (!isInterfaceDeclKind && AtEnd.isInvalid()) {
     // FIXME: This is wrong.  We shouldn't be pretending that there is
     //  an '@end' in the declaration.
-    SourceLocation L = ClassDecl->getLocation();
+    SourceLocation L = OCD->getAtStartLoc();
     AtEnd.setBegin(L);
     AtEnd.setEnd(L);
     Diag(L, diag::err_missing_atend);