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 | f26b12ada013a5d161b68fb3c554cd16045f969a (patch) | |
tree | d2a5fc275dec57dd1897f371e579e7fdcf80c05c /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | 7ba9636f0a04822812183fdc3c087bd4b7f72ca5 (diff) | |
download | bcm5719-llvm-f26b12ada013a5d161b68fb3c554cd16045f969a.tar.gz bcm5719-llvm-f26b12ada013a5d161b68fb3c554cd16045f969a.zip |
For the "'@end' is missing in implementation context" point at the location of '@'.
llvm-svn: 143084
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index f3b7ad713dc..1632e092e3b 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/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); |