aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-05 14:51:48 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-05 14:51:48 +0000
commit4a12f2277315eda5fc5eed138365ff92f7f4e8a8 (patch)
tree149ee378c5b559dfad39040a4000bba4edde06ae /utils/TableGen
parent605789564cbf5e9c18d85dd00ff3f76d611cd83f (diff)
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
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/ClangAttrEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp
index c921d9f702..2faa49ca45 100644
--- a/utils/TableGen/ClangAttrEmitter.cpp
+++ b/utils/TableGen/ClangAttrEmitter.cpp
@@ -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++]");
}