forked from OSchip/llvm-project
Attempt to fix pdbdump-headers.test on big-endian hosts after r269861.
llvm-svn: 269898
This commit is contained in:
parent
b0aa9f2cbe
commit
c819d903e1
|
@ -138,10 +138,14 @@ Error PublicsStream::reload() {
|
|||
// corrupted streams.
|
||||
|
||||
// Hash buckets follow.
|
||||
HashBuckets.resize(NumBuckets);
|
||||
if (auto EC = Reader.readArray<uint32_t>(HashBuckets))
|
||||
std::vector<ulittle32_t> TempHashBuckets;
|
||||
TempHashBuckets.resize(NumBuckets);
|
||||
if (auto EC = Reader.readArray<ulittle32_t>(TempHashBuckets))
|
||||
return make_error<RawError>(raw_error_code::corrupt_file,
|
||||
"Hash buckets corrupted.");
|
||||
HashBuckets.resize(NumBuckets);
|
||||
std::copy(TempHashBuckets.begin(), TempHashBuckets.end(),
|
||||
HashBuckets.begin());
|
||||
|
||||
// Something called "address map" follows.
|
||||
AddressMap.resize(Header->AddrMap / sizeof(uint32_t));
|
||||
|
|
Loading…
Reference in New Issue