mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[llvm-dwp] Don't rely on implicit move assignment operator (MSVC won't synthesize one)
llvm-svn: 254492
This commit is contained in:
parent
a676a66323
commit
566497d4a9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user