Add a DecltypeType type.

llvm-svn: 74099
This commit is contained in:
Anders Carlsson
2009-06-24 19:06:50 +00:00
parent 550e701cf5
commit 81df7b89de
11 changed files with 80 additions and 4 deletions

View File

@@ -1822,7 +1822,10 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) {
QualType UnderlyingType = GetType(Record[0]);
return Context->getTypeOfType(UnderlyingType);
}
case pch::TYPE_DECLTYPE:
return Context->getDecltypeType(ReadTypeExpr());
case pch::TYPE_RECORD:
assert(Record.size() == 1 && "incorrect encoding of record type");
return Context->getTypeDeclType(cast<RecordDecl>(GetDecl(Record[0])));