From 0d1d61648ec47cff596bc779634776a92f67315d Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sat, 12 Oct 2019 00:27:12 +0000 Subject: [PATCH] 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 --- lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.40.0