1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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 6485fb95d4
commit 1696522eb0

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