From 398e95c181134dc040784f75602d76cd360913da Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 1 Apr 2016 11:49:59 +0000 Subject: [PATCH] [ThinLTO] Fix uninitialized flags. Found by msan. Patch by Adrian Kuegel! llvm-svn: 265133 --- llvm/include/llvm/LTO/ThinLTOCodeGenerator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.7.4