[llvm] r345910 - [gold-plugin] Fix a bunch of build warnings
Mandeep Singh Grang via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 16:34:12 PDT 2018
Author: mgrang
Date: Thu Nov 1 16:34:12 2018
New Revision: 345910
URL: http://llvm.org/viewvc/llvm-project?rev=345910&view=rev
Log:
[gold-plugin] Fix a bunch of build warnings
Phabricator: https://reviews.llvm.org/D53997
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=345910&r1=345909&r2=345910&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Thu Nov 1 16:34:12 2018
@@ -447,9 +447,8 @@ static void diagnosticHandler(const Diag
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;
More information about the llvm-commits
mailing list