Location should be passed to setLocEnd() not to setAtEndLoc() which belongs to ObjCCo...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 18 Jul 2009 00:33:23 +0000 (00:33 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 18 Jul 2009 00:33:23 +0000 (00:33 +0000)
llvm-svn: 76268

clang/lib/Frontend/PCHReaderDecl.cpp

index 5fbf2d746208f463ae8dfa89d8f0b0fda5e24097..8df245a4b2f5d0c4bfdcf7277281b52a2209b0ab 100644 (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) {