mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 07:32:36 +00:00
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. llvm-svn: 349571
This commit is contained in:
parent
f5ffa1a67c
commit
5961809640
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user