forked from OSchip/llvm-project
parent
dab33c5d33
commit
e929095f4a
|
@ -2217,7 +2217,8 @@ QualType PCHReader::ReadTypeRecord(uint64_t Offset) {
|
|||
ElaboratedTypeKeyword Keyword = (ElaboratedTypeKeyword)Record[Idx++];
|
||||
NestedNameSpecifier *NNS = ReadNestedNameSpecifier(Record, Idx);
|
||||
const IdentifierInfo *Name = this->GetIdentifierInfo(Record, Idx);
|
||||
return Context->getDependentNameType(Keyword, NNS, Name, QualType());
|
||||
QualType Canon = GetType(Record[Idx++]);
|
||||
return Context->getDependentNameType(Keyword, NNS, Name, Canon);
|
||||
}
|
||||
|
||||
case pch::TYPE_DEPENDENT_TEMPLATE_SPECIALIZATION: {
|
||||
|
|
|
@ -260,6 +260,9 @@ PCHTypeWriter::VisitDependentNameType(const DependentNameType *T) {
|
|||
Record.push_back(T->getKeyword());
|
||||
Writer.AddNestedNameSpecifier(T->getQualifier(), Record);
|
||||
Writer.AddIdentifierRef(T->getIdentifier(), Record);
|
||||
Writer.AddTypeRef(T->isCanonicalUnqualified() ? QualType()
|
||||
: T->getCanonicalTypeInternal(),
|
||||
Record);
|
||||
Code = pch::TYPE_DEPENDENT_NAME;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue