Index: lld/trunk/COFF/PDB.cpp =================================================================== --- lld/trunk/COFF/PDB.cpp +++ lld/trunk/COFF/PDB.cpp @@ -82,9 +82,8 @@ IpiBuilder.setVersionHeader(pdb::PdbTpiV80); // Add Section Contributions. - ArrayRef InputSections = getInputSections(Symtab); std::vector Contribs = - pdb::DbiStreamBuilder::createSectionContribs(InputSections); + pdb::DbiStreamBuilder::createSectionContribs(getInputSections(Symtab)); DbiBuilder.setSectionContribs(Contribs); // Add Section Map stream.