1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Un-break the big-endian buildbots

llvm-svn: 221919
This commit is contained in:
Rui Ueyama 2014-11-13 20:07:06 +00:00
parent 8f277a520f
commit 3ed9ac191d

View File

@ -1283,9 +1283,9 @@ getImportAddress(int AddrIndex, uint64_t &Result) const {
if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr))
return EC;
if (OwningObject->is64())
Result = *reinterpret_cast<const uint64_t *>(IntPtr);
Result = *reinterpret_cast<const ulittle64_t *>(IntPtr);
else
Result = *reinterpret_cast<const uint32_t *>(IntPtr);
Result = *reinterpret_cast<const ulittle32_t *>(IntPtr);
return object_error::success;
}