summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-11-13 20:07:06 +0000
committerRui Ueyama <ruiu@google.com>2014-11-13 20:07:06 +0000
commit5dcf11d17791b422336eed0ae0310fdbc109883e (patch)
tree0bc7fc924e6b7229322f82e90c830c39f6313480 /llvm/lib/Object/COFFObjectFile.cpp
parent0b3a46247edbb6a058288234fb105f3607262603 (diff)
downloadbcm5719-llvm-5dcf11d17791b422336eed0ae0310fdbc109883e.tar.gz
bcm5719-llvm-5dcf11d17791b422336eed0ae0310fdbc109883e.zip
Un-break the big-endian buildbots
llvm-svn: 221919
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index dccc46765be..68bf7fd7f1c 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -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;
}
OpenPOWER on IntegriCloud