]> granicus.if.org Git - llvm/commit
Merging r226170:
authorDaniel Sanders <daniel.sanders@imgtec.com>
Sat, 17 Jan 2015 16:22:27 +0000 (16:22 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Sat, 17 Jan 2015 16:22:27 +0000 (16:22 +0000)
commit23e4d9de9880a2f88dd502b417cb7bac4b48bd8b
tree87be4a8f111953ad89f2d3238efd69948c39df0d
parentfc567809245d9900bd783ff77eb67faa25988704
Merging r226170:
------------------------------------------------------------------------
r226170 | vkalintiris | 2015-01-15 15:36:04 +0000 (Thu, 15 Jan 2015) | 7 lines

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/branches/release_36@226378 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp