From: Benjamin Kramer Date: Fri, 1 Apr 2016 11:49:59 +0000 (+0000) Subject: [ThinLTO] Fix uninitialized flags. X-Git-Tag: llvmorg-3.9.0-rc1~10265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=398e95c181134dc040784f75602d76cd360913da;p=platform%2Fupstream%2Fllvm.git [ThinLTO] Fix uninitialized flags. Found by msan. Patch by Adrian Kuegel! llvm-svn: 265133 --- diff --git a/llvm/include/llvm/LTO/ThinLTOCodeGenerator.h b/llvm/include/llvm/LTO/ThinLTOCodeGenerator.h index 3407c82..d64b32a 100644 --- a/llvm/include/llvm/LTO/ThinLTOCodeGenerator.h +++ b/llvm/include/llvm/LTO/ThinLTOCodeGenerator.h @@ -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