Location should be passed to setLocEnd() not to setAtEndLoc() which belongs to ObjCContainerDecl.

llvm-svn: 76268
This commit is contained in:
Argyrios Kyrtzidis 2009-07-18 00:33:23 +00:00
parent ce55b2e543
commit ea72f422ef
1 changed files with 1 additions and 1 deletions

View File

@ -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) {