summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-22 17:28:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-22 17:28:12 +0000
commit2d8891cd5d4a1c20f9a18ea0cae135228071e12b (patch)
tree17c2b316b45c38e76bf2f943e86fef8602797c8d /clang/lib/Frontend/PCHReaderDecl.cpp
parent59f9970ba534384a6bf0d5c0b162e69b714e6611 (diff)
downloadbcm5719-llvm-2d8891cd5d4a1c20f9a18ea0cae135228071e12b.tar.gz
bcm5719-llvm-2d8891cd5d4a1c20f9a18ea0cae135228071e12b.zip
Read/write C++0x static_assert for PCH.
llvm-svn: 109123
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index 7297fefcb26..d1f8b3aae94 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -1035,7 +1035,9 @@ void PCHDeclReader::VisitTemplateTemplateParmDecl(TemplateTemplateParmDecl *D) {
}
void PCHDeclReader::VisitStaticAssertDecl(StaticAssertDecl *D) {
- assert(false && "cannot read StaticAssertDecl");
+ VisitDecl(D);
+ D->AssertExpr = Reader.ReadExpr();
+ D->Message = cast<StringLiteral>(Reader.ReadExpr());
}
std::pair<uint64_t, uint64_t>
@@ -1412,7 +1414,7 @@ Decl *PCHReader::ReadDeclRecord(unsigned Index) {
D = TemplateTemplateParmDecl::Create(*Context, 0, SourceLocation(),0,0,0,0);
break;
case pch::DECL_STATIC_ASSERT:
- assert(false && "cannot read StaticAssertDecl");
+ D = StaticAssertDecl::Create(*Context, 0, SourceLocation(), 0, 0);
break;
case pch::DECL_OBJC_METHOD:
OpenPOWER on IntegriCloud