From: David Blaikie Date: Sat, 12 Oct 2019 00:27:12 +0000 (+0000) Subject: DebugInfo: Fix msan use-of-uninitialized exposed by r374600 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d1d61648ec47cff596bc779634776a92f67315d;p=llvm DebugInfo: Fix msan use-of-uninitialized exposed by r374600 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374619 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp index 9dd7d974ec0..f5235e28c92 100644 --- a/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp +++ b/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp @@ -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