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:
David Blaikie 2019-10-09 18:37:13 +00:00
parent 89386daa95
commit 746174706b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {