From: Douglas Gregor Date: Tue, 5 Oct 2010 14:51:48 +0000 (+0000) Subject: Properly deserialize Clang types that are used as attribute arguments X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4a12f2277315eda5fc5eed138365ff92f7f4e8a8;p=oota-llvm.git 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 --- diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index c921d9f7025..2faa49ca45a 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -44,7 +44,7 @@ std::string ReadPCHRecord(StringRef type) { return StringSwitch(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++]"); }