diff options
| author | Fangrui Song <maskray@google.com> | 2019-09-20 04:40:44 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-09-20 04:40:44 +0000 |
| commit | c768ad94b7f0be9feb86dd5cfcdb4158a5a28dd7 (patch) | |
| tree | 6d14db8816bdbb1b65aaee47ad0dbb625bfe43cb /llvm/tools/llvm-ar/llvm-ar.cpp | |
| parent | a5db9ee71f81310f89204cde1dfb54fea9bd92f1 (diff) | |
| download | bcm5719-llvm-c768ad94b7f0be9feb86dd5cfcdb4158a5a28dd7.tar.gz bcm5719-llvm-c768ad94b7f0be9feb86dd5cfcdb4158a5a28dd7.zip | |
[llvm-ar] Removes repetition in the error message
As per bug 40244, fixed an error where the error message was repeated.
Differential Revision: https://reviews.llvm.org/D67038
Patch by Yu Jian (wyjw)
llvm-svn: 372370
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
| -rw-r--r-- | llvm/tools/llvm-ar/llvm-ar.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index 006d8ed74cf..65a86192091 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -927,8 +927,7 @@ static int performOperation(ArchiveOperation Operation, if (!EC) { Error Err = Error::success(); object::Archive Archive(Buf.get()->getMemBufferRef(), Err); - EC = errorToErrorCode(std::move(Err)); - failIfError(EC, "error loading '" + ArchiveName + "': " + EC.message()); + failIfError(std::move(Err), "unable to load '" + ArchiveName + "'"); if (Archive.isThin()) CompareFullPath = true; performOperation(Operation, &Archive, std::move(Buf.get()), NewMembers); |

