[PATCH] D53997: [gold-plugin] Fix a bunch of build warnings

Mandeep Singh Grang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 1 16:23:10 PDT 2018


mgrang updated this revision to Diff 172264.

https://reviews.llvm.org/D53997

Files:
  tools/gold/gold-plugin.cpp


Index: tools/gold/gold-plugin.cpp
===================================================================
--- tools/gold/gold-plugin.cpp
+++ tools/gold/gold-plugin.cpp
@@ -447,8 +447,8 @@
   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());
+    Level = LDPL_FATAL;
+    break;
   case DS_Warning:
     Level = LDPL_WARNING;
     break;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53997.172264.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181101/6f2234ea/attachment.bin>


More information about the llvm-commits mailing list