[lld] r274507 - Fixed check-lld msan after r274504 "[ELF] - Implemented --fatal-warnings option."

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 4 07:54:24 PDT 2016

Author: grimar
Date: Mon Jul  4 09:54:23 2016
New Revision: 274507

URL: http://llvm.org/viewvc/llvm-project?rev=274507&view=rev
Fixed check-lld msan after r274504 "[ELF] - Implemented --fatal-warnings option."

Bot failed:

Initialize Config->FatalWarnings with false. As it might be used once a bit earlier than its
initialization from command line arguments.


Modified: lld/trunk/ELF/Config.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Config.h?rev=274507&r1=274506&r2=274507&view=diff
--- lld/trunk/ELF/Config.h (original)
+++ lld/trunk/ELF/Config.h Mon Jul  4 09:54:23 2016
@@ -81,7 +81,7 @@ struct Configuration {
   bool EhFrameHdr;
   bool EnableNewDtags;
   bool ExportDynamic;
-  bool FatalWarnings;
+  bool FatalWarnings = false;
   bool GcSections;
   bool GnuHash = false;
   bool ICF;

More information about the llvm-commits mailing list