[llvm] r221919 - Un-break the big-endian buildbots

Rui Ueyama ruiu at google.com
Thu Nov 13 12:07:06 PST 2014


Author: ruiu
Date: Thu Nov 13 14:07:06 2014
New Revision: 221919

URL: http://llvm.org/viewvc/llvm-project?rev=221919&view=rev
Log:
Un-break the big-endian buildbots

Modified:
    llvm/trunk/lib/Object/COFFObjectFile.cpp

Modified: llvm/trunk/lib/Object/COFFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/COFFObjectFile.cpp?rev=221919&r1=221918&r2=221919&view=diff
==============================================================================
--- llvm/trunk/lib/Object/COFFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/COFFObjectFile.cpp Thu Nov 13 14:07:06 2014
@@ -1283,9 +1283,9 @@ getImportAddress(int AddrIndex, uint64_t
   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;
 }
 





More information about the llvm-commits mailing list