From 4a12f2277315eda5fc5eed138365ff92f7f4e8a8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 5 Oct 2010 14:51:48 +0000 Subject: [PATCH] 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 --- utils/TableGen/ClangAttrEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++]"); } -- 2.34.1