diff options
author | David Blaikie <dblaikie@gmail.com> | 2019-10-09 18:37:13 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2019-10-09 18:37:13 +0000 |
commit | 746174706b22a506e6baac339c3fcce0cce24063 (patch) | |
tree | 82e910b7a62b8c10c5c75db61bb169f8e41e74c9 /llvm/lib/DebugInfo | |
parent | 89386daa9571add3bc30311dc0902f82a1148a4c (diff) | |
download | bcm5719-llvm-746174706b22a506e6baac339c3fcce0cce24063.tar.gz bcm5719-llvm-746174706b22a506e6baac339c3fcce0cce24063.zip |
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
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp index a5f79f86852..a243ed3a80b 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp @@ -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) { |