summaryrefslogtreecommitdiffstats
path: root/clang/utils
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-15 01:31:39 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-11-15 01:31:39 +0000
commita660ae4421ed77fdbfe7fb461f78b9a13c5fc12b (patch)
tree783341e81b8efcf698056d60af8cec93606a2a9b /clang/utils
parent6745c3b732d1013b2c9aca55ec5ed028528a00eb (diff)
downloadbcm5719-llvm-a660ae4421ed77fdbfe7fb461f78b9a13c5fc12b.tar.gz
bcm5719-llvm-a660ae4421ed77fdbfe7fb461f78b9a13c5fc12b.zip
[PCH] Reading expressions from attributes should be done using ReadExpr(),
not ReadExpr(). Also add a test case making sure the thread safety attributes work as expected when they come from a PCH. Fixes rdar://12584141 & http://llvm.org/PR13982 llvm-svn: 168017
Diffstat (limited to 'clang/utils')
-rw-r--r--clang/utils/TableGen/ClangAttrEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp
index 521f6046cfa..08f4499aeb2 100644
--- a/clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -47,7 +47,7 @@ static std::string ReadPCHRecord(StringRef type) {
.EndsWith("Decl *", "GetLocalDeclAs<"
+ std::string(type, 0, type.size()-1) + ">(F, Record[Idx++])")
.Case("QualType", "getLocalType(F, Record[Idx++])")
- .Case("Expr *", "ReadSubExpr()")
+ .Case("Expr *", "ReadExpr(F)")
.Case("IdentifierInfo *", "GetIdentifierInfo(F, Record, Idx)")
.Case("SourceLocation", "ReadSourceLocation(F, Record, Idx)")
.Default("Record[Idx++]");
OpenPOWER on IntegriCloud