[cfe-commits] r70125 - /cfe/trunk/lib/Frontend/PCHWriter.cpp

Steve Naroff snaroff at apple.com
Sun Apr 26 07:12:04 PDT 2009


Author: snaroff
Date: Sun Apr 26 09:11:39 2009
New Revision: 70125

URL: http://llvm.org/viewvc/llvm-project?rev=70125&view=rev
Log:
Make sure we have a code in the node:-)

This fixes all the -emit-pch problems discovered by utils/pch-test.pl.

Modified:
    cfe/trunk/lib/Frontend/PCHWriter.cpp

Modified: cfe/trunk/lib/Frontend/PCHWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriter.cpp?rev=70125&r1=70124&r2=70125&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriter.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriter.cpp Sun Apr 26 09:11:39 2009
@@ -1210,6 +1210,7 @@
   Writer.WriteSubStmt(E->getBase());
   Record.push_back(E->isArrow());
   Record.push_back(E->isFreeIvar());
+  Code = pch::EXPR_OBJC_IVAR_REF_EXPR;
 }
 
 void PCHStmtWriter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *E) {
@@ -1217,6 +1218,7 @@
   Writer.AddDeclRef(E->getProperty(), Record);
   Writer.AddSourceLocation(E->getLocation(), Record);
   Writer.WriteSubStmt(E->getBase());
+  Code = pch::EXPR_OBJC_PROPERTY_REF_EXPR;
 }
 
 void PCHStmtWriter::VisitObjCKVCRefExpr(ObjCKVCRefExpr *E) {
@@ -1229,6 +1231,7 @@
   Writer.WriteSubStmt(E->getBase());
   Writer.AddSourceLocation(E->getLocation(), Record);
   Writer.AddSourceLocation(E->getClassLoc(), Record);
+  Code = pch::EXPR_OBJC_KVC_REF_EXPR;
 }
 
 void PCHStmtWriter::VisitObjCMessageExpr(ObjCMessageExpr *E) {
@@ -1253,6 +1256,7 @@
 void PCHStmtWriter::VisitObjCSuperExpr(ObjCSuperExpr *E) {
   VisitExpr(E);
   Writer.AddSourceLocation(E->getLoc(), Record);
+  Code = pch::EXPR_OBJC_SUPER_EXPR;
 }
 
 





More information about the cfe-commits mailing list