summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-13 16:05:58 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-13 16:05:58 +0000
commit309b4c49e44b3878774b15c9d11ca7d831e2905f (patch)
treee3e885633dbc123b7e528a49770922fc673909b7 /clang/lib/Serialization/ASTWriter.cpp
parent635a9b4dcf589054885186dc30623e4d37f361b2 (diff)
downloadbcm5719-llvm-309b4c49e44b3878774b15c9d11ca7d831e2905f.tar.gz
bcm5719-llvm-309b4c49e44b3878774b15c9d11ca7d831e2905f.zip
Keep the source range of attributes. Depends on a llvm tablegen commit.
llvm-svn: 139600
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index 943d17741f8..5515f3b3ab7 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -2770,7 +2770,7 @@ void ASTWriter::WriteAttributes(const AttrVec &Attrs, RecordDataImpl &Record) {
for (AttrVec::const_iterator i = Attrs.begin(), e = Attrs.end(); i != e; ++i){
const Attr * A = *i;
Record.push_back(A->getKind()); // FIXME: stable encoding, target attrs
- AddSourceLocation(A->getLocation(), Record);
+ AddSourceRange(A->getRange(), Record);
#include "clang/Serialization/AttrPCHWrite.inc"
OpenPOWER on IntegriCloud