[modules] Don't write the UnusedFileScopedDecls vector to the module file.

llvm-svn: 177001
This commit is contained in:
Argyrios Kyrtzidis 2013-03-14 04:45:00 +00:00
parent ffb3558beb
commit 59852367b4
1 changed files with 3 additions and 2 deletions

View File

@ -3531,6 +3531,7 @@ void ASTWriter::WriteASTCore(Sema &SemaRef,
// Build a record containing all of the file scoped decls in this file. // Build a record containing all of the file scoped decls in this file.
RecordData UnusedFileScopedDecls; RecordData UnusedFileScopedDecls;
if (!isModule)
AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls, AddLazyVectorDecls(*this, SemaRef.UnusedFileScopedDecls,
UnusedFileScopedDecls); UnusedFileScopedDecls);