[cfe-commits] r143084 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Oct 26 17:09:29 PDT 2011
Author: akirtzidis
Date: Wed Oct 26 19:09:29 2011
New Revision: 143084
URL: http://llvm.org/viewvc/llvm-project?rev=143084&view=rev
Log:
For the "'@end' is missing in implementation context" point at the location of '@'.
Modified:
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=143084&r1=143083&r2=143084&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Wed Oct 26 19:09:29 2011
@@ -2142,7 +2142,7 @@
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);
More information about the cfe-commits
mailing list