From: David Blaikie Date: Wed, 2 Dec 2015 07:09:26 +0000 (+0000) Subject: [llvm-dwp] Don't rely on implicit move assignment operator (MSVC won't synthesize... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cf0403d373db0ec717f6f2678fc97dcb931ff114;p=oota-llvm.git [llvm-dwp] Don't rely on implicit move assignment operator (MSVC won't synthesize one) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254492 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp b/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp index e8e7441d976..1f1921649b5 100644 --- a/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp +++ b/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp @@ -31,8 +31,13 @@ void DWARFUnitIndex::Header::dump(raw_ostream &OS) const { bool DWARFUnitIndex::parse(DataExtractor IndexData) { bool b = parseImpl(IndexData); - if (!b) - *this = DWARFUnitIndex(InfoColumnKind); + if (!b) { + // Make sure we don't try to dump anything + Header.NumBuckets = 0; + // Release any partially initialized data. + ColumnKinds.reset(); + Rows.reset(); + } return b; }