[ThinLTO] Fix uninitialized flags.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 Apr 2016 11:49:59 +0000 (11:49 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 1 Apr 2016 11:49:59 +0000 (11:49 +0000)
Found by msan. Patch by Adrian Kuegel!

llvm-svn: 265133

llvm/include/llvm/LTO/ThinLTOCodeGenerator.h

index 3407c82..d64b32a 100644 (file)
@@ -238,11 +238,11 @@ private:
 
   /// Flag to enable/disable CodeGen. When set to true, the process stops after
   /// optimizations and a bitcode is produced.
-  bool DisableCodeGen;
+  bool DisableCodeGen = false;
 
   /// Flag to indicate that only the CodeGen will be performed, no cross-module
   /// importing or optimization.
-  bool CodeGenOnly;
+  bool CodeGenOnly = false;
 };
 }
 #endif