summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-27 00:09:29 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-27 00:09:29 +0000
commitf26b12ada013a5d161b68fb3c554cd16045f969a (patch)
treed2a5fc275dec57dd1897f371e579e7fdcf80c05c /clang/lib/Sema/SemaDeclObjC.cpp
parent7ba9636f0a04822812183fdc3c087bd4b7f72ca5 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud