diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-22 17:28:12 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-22 17:28:12 +0000 |
commit | 2d8891cd5d4a1c20f9a18ea0cae135228071e12b (patch) | |
tree | 17c2b316b45c38e76bf2f943e86fef8602797c8d /clang/lib/Frontend/PCHWriterDecl.cpp | |
parent | 59f9970ba534384a6bf0d5c0b162e69b714e6611 (diff) | |
download | bcm5719-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/PCHWriterDecl.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHWriterDecl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHWriterDecl.cpp b/clang/lib/Frontend/PCHWriterDecl.cpp index 122bd3dea1a..f6c6cde1577 100644 --- a/clang/lib/Frontend/PCHWriterDecl.cpp +++ b/clang/lib/Frontend/PCHWriterDecl.cpp @@ -989,7 +989,10 @@ void PCHDeclWriter::VisitTemplateTemplateParmDecl(TemplateTemplateParmDecl *D) { } void PCHDeclWriter::VisitStaticAssertDecl(StaticAssertDecl *D) { - assert(false && "cannot write StaticAssertDecl"); + VisitDecl(D); + Writer.AddStmt(D->getAssertExpr()); + Writer.AddStmt(D->getMessage()); + Code = pch::DECL_STATIC_ASSERT; } /// \brief Emit the DeclContext part of a declaration context decl. |