summaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-12-18 23:33:10 +0000
committerRui Ueyama <ruiu@google.com>2018-12-18 23:33:10 +0000
commit7bcd659320304700c3ed227cc9f53aac96985d6e (patch)
tree5a04d6fffb3b7e6e6b22173e15cd0136389d8f01 /lld
parentee04da6e304f85f75b295c8c2b0b1e261945f861 (diff)
Fix error message.
Previously, this code printed out an error message like this ld.lld: error: --reproduce: failed to open /foo: cannot open /foo Apparently "failed to open /foo:" part is redundant.
Diffstat (limited to 'lld')
-rw-r--r--lld/ELF/Driver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 1da557493c1..1888edc025c 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -407,8 +407,7 @@ void LinkerDriver::main(ArrayRef<const char *> ArgsArr) {
Tar->append("version.txt", getLLDVersion() + "\n");
make<std::unique_ptr<TarWriter>>(std::move(*ErrOrWriter));
} else {
- error(Twine("--reproduce: failed to open ") + Path + ": " +
- toString(ErrOrWriter.takeError()));
+ error("--reproduce: " + toString(ErrOrWriter.takeError()));
}
}