summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-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 f9ab4dbf1ca..b4580b5fe7c 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -396,9 +396,7 @@ void ScriptParser::readOutputFormat() {
void ScriptParser::readSearchDir() {
expect("(");
- StringRef Path = next();
- if (!Config->Nostdlib)
- Config->SearchPaths.push_back(Path);
+ Config->SearchPaths.push_back(next());
expect(")");
}
OpenPOWER on IntegriCloud