Fix the C-API MCJIT test for 32-bit big endian machines.
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 15 Jan 2015 15:36:04 +0000 (15:36 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 15 Jan 2015 15:36:04 +0000 (15:36 +0000)
commitadd8f51c26d36b9d24b9afda8b4e5f5f8e48df67
treea4dabf2aaa5983eb05539e0bc3faf9927c5b518c
parentb6d562e4803fc5784efc60234aa90ace68b1e04f
Fix the C-API MCJIT test for 32-bit big endian machines.

Avoid using unions for storing the return value from
LLVMGetGlobalValueAddress() and LLVMGetFunctionAddress() and accessing it as
a pointer through another pointer member. This causes problems on 32-bit big
endian machines since the pointer gets the higher part of the return value of
the aforementioned functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226170 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp