diff options
| author | Mandeep Singh Grang <mgrang@codeaurora.org> | 2018-11-01 23:34:12 +0000 |
|---|---|---|
| committer | Mandeep Singh Grang <mgrang@codeaurora.org> | 2018-11-01 23:34:12 +0000 |
| commit | d5779da11be0b289665499996ef4bcc92fd36714 (patch) | |
| tree | 24ec03e2a56f28a874d8d77d68640abd81fe458b /llvm | |
| parent | 547a0d765ac7d9de0cf0b122b4bb58054e8dd46b (diff) | |
| download | bcm5719-llvm-d5779da11be0b289665499996ef4bcc92fd36714.tar.gz bcm5719-llvm-d5779da11be0b289665499996ef4bcc92fd36714.zip | |
[gold-plugin] Fix a bunch of build warnings
Phabricator: https://reviews.llvm.org/D53997
llvm-svn: 345910
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index ba9d3ac9345..71e5b72a40c 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -447,9 +447,8 @@ static void diagnosticHandler(const DiagnosticInfo &DI) { ld_plugin_level Level; switch (DI.getSeverity()) { case DS_Error: - message(LDPL_FATAL, "LLVM gold plugin has failed to create LTO module: %s", - ErrStorage.c_str()); - return; + Level = LDPL_FATAL; + break; case DS_Warning: Level = LDPL_WARNING; break; |

