summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriterStmt.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-02 23:30:27 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-02 23:30:27 +0000
commit3701fcd759fc1b7f55c2de06ce715edcea71053f (patch)
treee571abaf97e0dccca89a695363d3bee3449dc038 /clang/lib/Frontend/PCHWriterStmt.cpp
parent4259ebcdac724e2c9ec8933d8cbb94013997b785 (diff)
downloadbcm5719-llvm-3701fcd759fc1b7f55c2de06ce715edcea71053f.tar.gz
bcm5719-llvm-3701fcd759fc1b7f55c2de06ce715edcea71053f.zip
Read/write CastExpr's CXXBaseSpecifierArray for PCH.
llvm-svn: 107542
Diffstat (limited to 'clang/lib/Frontend/PCHWriterStmt.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriterStmt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHWriterStmt.cpp b/clang/lib/Frontend/PCHWriterStmt.cpp
index 12fcde845ec..91f9353ed0c 100644
--- a/clang/lib/Frontend/PCHWriterStmt.cpp
+++ b/clang/lib/Frontend/PCHWriterStmt.cpp
@@ -529,6 +529,11 @@ void PCHStmtWriter::VisitCastExpr(CastExpr *E) {
VisitExpr(E);
Writer.AddStmt(E->getSubExpr());
Record.push_back(E->getCastKind()); // FIXME: stable encoding
+ CXXBaseSpecifierArray &BasePath = E->getBasePath();
+ Record.push_back(BasePath.size());
+ for (CXXBaseSpecifierArray::iterator I = BasePath.begin(), E = BasePath.end();
+ I != E; ++I)
+ Writer.AddCXXBaseSpecifier(**I, Record);
}
void PCHStmtWriter::VisitBinaryOperator(BinaryOperator *E) {
OpenPOWER on IntegriCloud