summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderStmt.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-29 18:16:10 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-29 18:16:10 +0000
commitd67d4cc82ff01ca919eb25c09c40df421a8a39ea (patch)
treec964735b0f38f841908b0616d85f1b54650040d8 /clang/lib/Frontend/PCHReaderStmt.cpp
parentc81af03fb39c879f1713224b29ac0fc10470ea89 (diff)
downloadbcm5719-llvm-d67d4cc82ff01ca919eb25c09c40df421a8a39ea.tar.gz
bcm5719-llvm-d67d4cc82ff01ca919eb25c09c40df421a8a39ea.zip
Implement PCH support for offsetof(base-specifier).
llvm-svn: 109785
Diffstat (limited to 'clang/lib/Frontend/PCHReaderStmt.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderStmt.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Frontend/PCHReaderStmt.cpp b/clang/lib/Frontend/PCHReaderStmt.cpp
index 86dfd879ca6..6a11529b02c 100644
--- a/clang/lib/Frontend/PCHReaderStmt.cpp
+++ b/clang/lib/Frontend/PCHReaderStmt.cpp
@@ -502,11 +502,13 @@ void PCHStmtReader::VisitOffsetOfExpr(OffsetOfExpr *E) {
E->setComponent(I, Node(Start, Reader.GetIdentifier(Record[Idx++]), End));
break;
- case Node::Base:
- // FIXME: Implement this!
- llvm_unreachable("PCH for offsetof(base-specifier) not implemented");
+ case Node::Base: {
+ CXXBaseSpecifier *Base = new (*Reader.getContext()) CXXBaseSpecifier();
+ *Base = Reader.ReadCXXBaseSpecifier(DeclsCursor, Record, Idx);
+ E->setComponent(I, Node(Base));
break;
}
+ }
}
for (unsigned I = 0, N = E->getNumExpressions(); I != N; ++I)
OpenPOWER on IntegriCloud