[PCH] Reading expressions from attributes should be done using ReadExpr(),
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 15 Nov 2012 01:31:39 +0000 (01:31 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 15 Nov 2012 01:31:39 +0000 (01:31 +0000)
commita660ae4421ed77fdbfe7fb461f78b9a13c5fc12b
tree783341e81b8efcf698056d60af8cec93606a2a9b
parent6745c3b732d1013b2c9aca55ec5ed028528a00eb
[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
clang/test/PCH/thread-safety-attrs.cpp [new file with mode: 0644]
clang/utils/TableGen/ClangAttrEmitter.cpp