diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-27 00:09:29 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-27 00:09:29 +0000 |
commit | 1104d9b305e5cee1b2d915cd57520d02d3107781 (patch) | |
tree | 9ffc0798640da066078f411671f3f0a733a30c28 /lib/Sema/SemaDeclObjC.cpp | |
parent | 90eed219f4215adf300800ab7478f568c7a4b2a3 (diff) |
For the "'@end' is missing in implementation context" point at the location of '@'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index f3b7ad713d..1632e092e3 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -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); |