diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-12-02 07:09:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-12-02 07:09:26 +0000 |
commit | 20f52662d40c9c96933b33213da977f55c9b0f20 (patch) | |
tree | 5dc6b66cf9e8cf48ed65ae8990f89b5adc42b9e0 /llvm/lib/DebugInfo | |
parent | 237916b537fc159740b75f5338c4f5f664ab9a84 (diff) | |
download | bcm5719-llvm-20f52662d40c9c96933b33213da977f55c9b0f20.tar.gz bcm5719-llvm-20f52662d40c9c96933b33213da977f55c9b0f20.zip |
[llvm-dwp] Don't rely on implicit move assignment operator (MSVC won't synthesize one)
llvm-svn: 254492
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp index e8e7441d976..1f1921649b5 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp +++ b/llvm/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; } |