[lldb] Fix msan use-of-uninitialized-value in DWARFDebugLine::FileNameEntry.

lldb/lit/SymbolFile/DWARF/debug-types-expressions.test fails with msan.
This change fixes the issue by ensuring FileNameEntry::checksum is
always default-initialized.

llvm-svn: 362843
This commit is contained in:
Jorge Gorbe Moya 2019-06-07 21:09:30 +00:00
parent 45500fcd5d
commit 13427e64de
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ class DWARFDebugLine {
public:
// FileNameEntry
struct FileNameEntry {
FileNameEntry() : name(nullptr), dir_idx(0), mod_time(0), length(0) {}
FileNameEntry()
: name(nullptr), dir_idx(0), mod_time(0), length(0), checksum() {}
const char *name;
dw_sleb128_t dir_idx;