forked from OSchip/llvm-project
Added writing and reading of the ConstQualAdded flag of
BlockDeclRefExpr to PCH. llvm-svn: 73800
This commit is contained in:
parent
8d284c7683
commit
e8918d52d1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue