Properly deserialize Clang types that are used as attribute arguments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Gregor 2010-10-05 14:51:48 +00:00
parent 605789564c
commit 4a12f22773

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++]");
}