[llvm] r265133 - [ThinLTO] Fix uninitialized flags.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 04:50:00 PDT 2016
Author: d0k
Date: Fri Apr 1 06:49:59 2016
New Revision: 265133
URL: http://llvm.org/viewvc/llvm-project?rev=265133&view=rev
Log:
[ThinLTO] Fix uninitialized flags.
Found by msan. Patch by Adrian Kuegel!
Modified:
llvm/trunk/include/llvm/LTO/ThinLTOCodeGenerator.h
Modified: llvm/trunk/include/llvm/LTO/ThinLTOCodeGenerator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LTO/ThinLTOCodeGenerator.h?rev=265133&r1=265132&r2=265133&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LTO/ThinLTOCodeGenerator.h (original)
+++ llvm/trunk/include/llvm/LTO/ThinLTOCodeGenerator.h Fri Apr 1 06:49:59 2016
@@ -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
More information about the llvm-commits
mailing list