forked from OSchip/llvm-project
[MCJIT] Fix a cast warning in the unit-test introduced in r243589.
Thanks to Aaron Ballman for spotting this. llvm-svn: 243891
This commit is contained in:
parent
b4c1c28c6e
commit
1423bd05b5
|
@ -514,7 +514,13 @@ TEST_F(MCJITCAPITest, addGlobalMapping) {
|
||||||
buildMCJITOptions();
|
buildMCJITOptions();
|
||||||
buildMCJITEngine();
|
buildMCJITEngine();
|
||||||
|
|
||||||
LLVMAddGlobalMapping(Engine, MappedFn, reinterpret_cast<void*>(&localTestFunc));
|
union {
|
||||||
|
int (*raw)();
|
||||||
|
void *usable;
|
||||||
|
} functionPointer;
|
||||||
|
functionPointer.raw = &localTestFunc;
|
||||||
|
|
||||||
|
LLVMAddGlobalMapping(Engine, MappedFn, functionPointer.usable);
|
||||||
|
|
||||||
buildAndRunPasses();
|
buildAndRunPasses();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue