diff options
-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); |