]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374619 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARF/DWARFDebugLoc.cpp

index 9dd7d974ec05c3d8c813229e8cc4bb9f7c268021..f5235e28c928b0e2ebb9e1cca46a0ef787ad48ee 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