DebugInfo: Fix msan use-of-uninitialized exposed by r374600
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 12 Oct 2019 00:27:12 +0000 (00:27 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 12 Oct 2019 00:27:12 +0000 (00:27 +0000)
llvm-svn: 374619

llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp

index 9dd7d97..f5235e2 100644 (file)
@@ -90,6 +90,7 @@ DWARFDebugLoc::parseOneLocationList(const DWARFDataExtractor &Data,
                                     uint64_t *Offset) {
   LocationList LL;
   LL.Offset = *Offset;
+  AddressSize = Data.getAddressSize();
   DataExtractor::Cursor C(*Offset);
 
   // 2.6.2 Location Lists