[JITLink] Fix a pointer-to-integer cast in jitlink::InProcessMemoryManager.
authorLang Hames <lhames@gmail.com>
Tue, 3 Mar 2020 21:51:05 +0000 (13:51 -0800)
committerLang Hames <lhames@gmail.com>
Tue, 3 Mar 2020 21:53:00 +0000 (13:53 -0800)
commitab16ef17e838377e914a18fcec0fa78375833c36
tree5c57cebdd1b74b9b6b0b8ef3eaee603e1c6a7b1b
parenta7fa8b022f0e9873c61e23f5f493bd413b69f4d0
[JITLink] Fix a pointer-to-integer cast in jitlink::InProcessMemoryManager.

reinterpret_cast'ing the block base address directly to a uint64_t leaves the
high bits in an implementation-defined state, but JITLink expects them to be
zero. Switching to pointerToJITTargetAddress for the cast should fix this.

This should fix the jitlink test failures that we have seen on some of the
32-bit testers.
llvm/lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp