summaryrefslogtreecommitdiffstats
path: root/lld
diff options
context:
space:
mode:
Diffstat (limited to 'lld')
-rw-r--r--lld/ELF/LinkerScript.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 53daaa6743d..3e229b0eaa0 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -1030,7 +1030,6 @@ private:
ScriptConfiguration &Opt = *ScriptConfig;
bool IsUnderSysroot;
- std::vector<std::unique_ptr<MemoryBuffer>> OwningMBs;
};
void ScriptParser::readDynamicList() {
@@ -1180,8 +1179,7 @@ void ScriptParser::readInclude() {
return;
}
std::unique_ptr<MemoryBuffer> &MB = *MBOrErr;
- tokenize(MB->getMemBufferRef());
- OwningMBs.push_back(std::move(MB));
+ tokenize({Saver.save(MB->getBuffer()), unquote(Tok)});
}
void ScriptParser::readOutput() {
OpenPOWER on IntegriCloud