OSDN Git Service

Un-break the big-endian buildbots
authorRui Ueyama <ruiu@google.com>
Thu, 13 Nov 2014 20:07:06 +0000 (20:07 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 13 Nov 2014 20:07:06 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221919 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Object/COFFObjectFile.cpp

index dccc467..68bf7fd 100644 (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;
 }