diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-07-15 02:01:03 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-07-15 02:01:03 +0000 |
| commit | f8292e9ac968a1c9d72464af30a5b37e738a5199 (patch) | |
| tree | 00ce8209294cecb4551b95e695af58de475e74c3 /lld/ELF/Writer.cpp | |
| parent | b95dc4608d70887a5efc1db5301539b3b38fe8cc (diff) | |
| download | bcm5719-llvm-f8292e9ac968a1c9d72464af30a5b37e738a5199.tar.gz bcm5719-llvm-f8292e9ac968a1c9d72464af30a5b37e738a5199.zip | |
ELF: Make check() always return a value.
This patch corresponds to r275511 for COFF.
llvm-svn: 275521
Diffstat (limited to 'lld/ELF/Writer.cpp')
| -rw-r--r-- | lld/ELF/Writer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 7b9d9402ae8..3ac0191503b 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -261,7 +261,8 @@ template <class ELFT> void Writer<ELFT>::run() { writeBuildId(); if (HasError) return; - check(Buffer->commit()); + if (auto EC = Buffer->commit()) + error(EC, "failed to write to the output file"); } template <class ELFT> |

