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 | 4990890fc9428f98bef90ba349203a648c592778 (patch) | |
tree | 9c2fcfee3f7fb584462952bf667caaffa7fa44ed /lib/Serialization/ASTWriterDecl.cpp | |
parent | ef0ebee9a4e1e6254b9c54c6fbb30045ed959c37 (diff) |
Inline storage of attributes in AttributedStmt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTWriterDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index d4ebc1c42a..96b602221e 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/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()); |