From 72e50fe4acbb60edd70e0526b57feebf1f411d6f Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 14 Apr 2016 00:50:18 +0000 Subject: [modules] Store the location of the lexical update record in a decl update as an offset from the current record rather than as an absolute bit number. This gives a minor .pcm file size reduction. llvm-svn: 266269 --- clang/lib/Serialization/ASTWriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/Serialization/ASTWriter.cpp') diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 2fec5c23493..5b5ecb177de 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -4661,8 +4661,7 @@ void ASTWriter::WriteDeclUpdatesBlocks(RecordDataImpl &OffsetsRecord) { auto *RD = cast(D); UpdatedDeclContexts.insert(RD->getPrimaryContext()); Record.AddCXXDefinitionData(RD); - // FIXME: Use AddOffset here. - Record.push_back(WriteDeclContextLexicalBlock( + Record.AddOffset(WriteDeclContextLexicalBlock( *Context, const_cast(RD))); // This state is sometimes updated by template instantiation, when we -- cgit v1.2.3