mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
[codeview] Fully initialize DataSym when mapping from YAML
In the object file, the section index and relative offset are typically zero, so make these YAML fields optional with a default. It looks like there may be more partially initialized symbol records, but this should fix the msan bot. llvm-svn: 305842
This commit is contained in:
parent
38e25ffa46
commit
a69be8fb50
@ -489,6 +489,8 @@ template <> void SymbolRecordImpl<ConstantSym>::map(IO &IO) {
|
||||
template <> void SymbolRecordImpl<DataSym>::map(IO &IO) {
|
||||
// TODO: Map linkage name
|
||||
IO.mapRequired("Type", Symbol.Type);
|
||||
IO.mapOptional("DataOffset", Symbol.DataOffset, 0U);
|
||||
IO.mapOptional("Segment", Symbol.Segment, uint16_t(0));
|
||||
IO.mapRequired("DisplayName", Symbol.Name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user