[gold-plugin] Fix a bunch of build warnings
authorMandeep Singh Grang <mgrang@codeaurora.org>
Thu, 1 Nov 2018 23:34:12 +0000 (23:34 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Thu, 1 Nov 2018 23:34:12 +0000 (23:34 +0000)
Phabricator: https://reviews.llvm.org/D53997
llvm-svn: 345910

llvm/tools/gold/gold-plugin.cpp

index ba9d3ac..71e5b72 100644 (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;