[llvm] r374619 - DebugInfo: Fix msan use-of-uninitialized exposed by r374600
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 17:27:13 PDT 2019
Author: dblaikie
Date: Fri Oct 11 17:27:12 2019
New Revision: 374619
URL: http://llvm.org/viewvc/llvm-project?rev=374619&view=rev
Log:
DebugInfo: Fix msan use-of-uninitialized exposed by r374600
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp?rev=374619&r1=374618&r2=374619&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp Fri Oct 11 17:27:12 2019
@@ -90,6 +90,7 @@ DWARFDebugLoc::parseOneLocationList(cons
uint64_t *Offset) {
LocationList LL;
LL.Offset = *Offset;
+ AddressSize = Data.getAddressSize();
DataExtractor::Cursor C(*Offset);
// 2.6.2 Location Lists
More information about the llvm-commits
mailing list