]> granicus.if.org Git - clang/commitdiff
Added writing and reading of the ConstQualAdded flag of
authorFariborz Jahanian <fjahanian@apple.com>
Sat, 20 Jun 2009 00:02:26 +0000 (00:02 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sat, 20 Jun 2009 00:02:26 +0000 (00:02 +0000)
BlockDeclRefExpr to PCH.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73800 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PCHReaderStmt.cpp
lib/Frontend/PCHWriterStmt.cpp

index e6871e3a0eb676961e7d3cba9d02a164eedb4103..d09638806169226c3971acb5e3c473cb3686c8ba 100644 (file)
@@ -667,6 +667,7 @@ unsigned PCHStmtReader::VisitBlockDeclRefExpr(BlockDeclRefExpr *E) {
   E->setDecl(cast<ValueDecl>(Reader.GetDecl(Record[Idx++])));
   E->setLocation(SourceLocation::getFromRawEncoding(Record[Idx++]));
   E->setByRef(Record[Idx++]);
+  E->setConstQualAdded(Record[Idx++]);
   return 0;
 }
 
index 73dea1061c283a4a46aeef73425d8cab1e8c674d..c63c03c8823f612f10ff788eaf7c97a8aa5a112e 100644 (file)
@@ -602,6 +602,7 @@ void PCHStmtWriter::VisitBlockDeclRefExpr(BlockDeclRefExpr *E) {
   Writer.AddDeclRef(E->getDecl(), Record);
   Writer.AddSourceLocation(E->getLocation(), Record);
   Record.push_back(E->isByRef());
+  Record.push_back(E->isConstQualAdded());
   Code = pch::EXPR_BLOCK_DECL_REF;
 }