Properly deserialize Clang types that are used as attribute arguments

llvm-svn: 115616
This commit is contained in:
Douglas Gregor 2010-10-05 14:51:48 +00:00
parent 33e956ce63
commit 9e6ce12abf

View File

@ -44,7 +44,7 @@ std::string ReadPCHRecord(StringRef type) {
return StringSwitch<std::string>(type)
.EndsWith("Decl *", "cast_or_null<" + std::string(type, 0, type.size()-1) +
">(GetDecl(Record[Idx++]))")
.Case("QualType", "ReadTypeRecord(Idx++)")
.Case("QualType", "GetType(Record[Idx++])")
.Default("Record[Idx++]");
}