1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

Attempt to fix pdbdump-headers.test on big-endian hosts after r269861.

llvm-svn: 269898
This commit is contained in:
Daniel Sanders 2016-05-18 09:59:14 +00:00
parent b7ca91e9a3
commit b0557b7f4f

View File

@ -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));