[gold-plugin] Fix a bunch of build warnings

Phabricator: https://reviews.llvm.org/D53997

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mandeep Singh Grang 2018-11-01 23:34:12 +00:00
parent 08238b7fa9
commit badd06e25e

View File

@ -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;