summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-10-12 00:27:12 +0000
committerDavid Blaikie <dblaikie@gmail.com>2019-10-12 00:27:12 +0000
commitc8e5b90ba65959fed4b1da1a7aee2175003f1a7c (patch)
treed12dcaa3d079994ef8a7e4541dd51eee375e95f6
parent852e3b207651ce4cc8e9382282eca5e91ac1476b (diff)
downloadbcm5719-llvm-c8e5b90ba65959fed4b1da1a7aee2175003f1a7c.tar.gz
bcm5719-llvm-c8e5b90ba65959fed4b1da1a7aee2175003f1a7c.zip
DebugInfo: Fix msan use-of-uninitialized exposed by r374600
llvm-svn: 374619
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
index 9dd7d974ec0..f5235e28c92 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud