forked from OSchip/llvm-project
[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:
parent
45500fcd5d
commit
13427e64de
|
@ -29,7 +29,8 @@ class DWARFDebugLine {
|
||||||
public:
|
public:
|
||||||
// FileNameEntry
|
// FileNameEntry
|
||||||
struct 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;
|
const char *name;
|
||||||
dw_sleb128_t dir_idx;
|
dw_sleb128_t dir_idx;
|
||||||
|
|
Loading…
Reference in New Issue