Index: lld/trunk/ELF/LinkerScript.cpp =================================================================== --- lld/trunk/ELF/LinkerScript.cpp +++ lld/trunk/ELF/LinkerScript.cpp @@ -1030,7 +1030,6 @@ ScriptConfiguration &Opt = *ScriptConfig; bool IsUnderSysroot; - std::vector> OwningMBs; }; void ScriptParser::readDynamicList() { @@ -1180,8 +1179,7 @@ return; } std::unique_ptr &MB = *MBOrErr; - tokenize(MB->getMemBufferRef()); - OwningMBs.push_back(std::move(MB)); + tokenize({Saver.save(MB->getBuffer()), unquote(Tok)}); } void ScriptParser::readOutput() {