projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec26866
)
[llvm-dwp] Don't rely on implicit move assignment operator (MSVC won't synthesize...
author
David Blaikie
<dblaikie@gmail.com>
Wed, 2 Dec 2015 07:09:26 +0000
(07:09 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Wed, 2 Dec 2015 07:09:26 +0000
(07:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254492
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
patch
|
blob
|
history
diff --git
a/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
b/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
index e8e7441d976927c35c536d2cb99e426e3f2327b8..1f1921649b57ae760ce9d711a53c11e0b8def6be 100644
(file)
--- 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;
}