From: Argyrios Kyrtzidis Date: Sat, 18 Jul 2009 00:33:23 +0000 (+0000) Subject: Location should be passed to setLocEnd() not to setAtEndLoc() which belongs to ObjCCo... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c999f1f9f1f8c08084ef0d4450e9c844dd3c6161;p=clang Location should be passed to setLocEnd() not to setAtEndLoc() which belongs to ObjCContainerDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76268 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp index 5fbf2d7462..8df245a4b2 100644 --- a/lib/Frontend/PCHReaderDecl.cpp +++ b/lib/Frontend/PCHReaderDecl.cpp @@ -221,7 +221,7 @@ void PCHDeclReader::VisitObjCInterfaceDecl(ObjCInterfaceDecl *ID) { ID->setImplicitInterfaceDecl(Record[Idx++]); ID->setClassLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); ID->setSuperClassLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); - ID->setAtEndLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + ID->setLocEnd(SourceLocation::getFromRawEncoding(Record[Idx++])); } void PCHDeclReader::VisitObjCIvarDecl(ObjCIvarDecl *IVD) {