Properly deserialize Clang types that are used as attribute arguments
authorDouglas Gregor <dgregor@apple.com>
Tue, 5 Oct 2010 14:51:48 +0000 (14:51 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 5 Oct 2010 14:51:48 +0000 (14:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115616 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangAttrEmitter.cpp

index c921d9f70253c0309d3b5a9c5cf8daa3751bc14e..2faa49ca45ad1a53fcc3b2e986464fc1090d2785 100644 (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++]");
 }