diff options
author | Alexander Kornienko <alexfh@google.com> | 2012-07-09 10:04:07 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2012-07-09 10:04:07 +0000 |
commit | 20f6fc6220d7b6ddef7103bac1c31a9a18e559b2 (patch) | |
tree | 664ae3458ef8e4454b6c87c6bbf73720a072d2cb /clang/lib/Serialization/ASTWriterDecl.cpp | |
parent | 75b9cfd1f091ab0597127567885bda154394f422 (diff) | |
download | bcm5719-llvm-20f6fc6220d7b6ddef7103bac1c31a9a18e559b2.tar.gz bcm5719-llvm-20f6fc6220d7b6ddef7103bac1c31a9a18e559b2.zip |
Inline storage of attributes in AttributedStmt.
llvm-svn: 159925
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index d4ebc1c42a1..96b602221eb 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/lib/Serialization/ASTWriterDecl.cpp @@ -151,7 +151,8 @@ void ASTDeclWriter::VisitDecl(Decl *D) { Record.push_back(D->isInvalidDecl()); Record.push_back(D->hasAttrs()); if (D->hasAttrs()) - Writer.WriteAttributes(D->getAttrs(), Record); + Writer.WriteAttributes(ArrayRef<const Attr*>(D->getAttrs().begin(), + D->getAttrs().size()), Record); Record.push_back(D->isImplicit()); Record.push_back(D->isUsed(false)); Record.push_back(D->isReferenced()); |