forked from OSchip/llvm-project
DebugInfo: Shot in the dark attempt to fix ubsan error from r374122
(specifying an underlying type for the enum might also be suitable - but this seems better/as good, since there's a clear expectation this can contain values other than the actual enumerators of this enum) llvm-svn: 374196
This commit is contained in:
parent
89386daa95
commit
746174706b
|
@ -143,7 +143,7 @@ DWARFDebugLoclists::parseOneLocationList(const DataExtractor &Data,
|
|||
DataExtractor::Cursor C(*Offset);
|
||||
|
||||
// dwarf::DW_LLE_end_of_list_entry is 0 and indicates the end of the list.
|
||||
while (auto Kind = static_cast<dwarf::LoclistEntries>(Data.getU8(C))) {
|
||||
while (auto Kind = Data.getU8(C)) {
|
||||
Entry E;
|
||||
E.Kind = Kind;
|
||||
switch (Kind) {
|
||||
|
|
Loading…
Reference in New Issue