[all-commits] [llvm/llvm-project] ab16ef: [JITLink] Fix a pointer-to-integer cast in jitlink...

lhames via All-commits all-commits at lists.llvm.org
Tue Mar 3 13:54:11 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ab16ef17e838377e914a18fcec0fa78375833c36
      https://github.com/llvm/llvm-project/commit/ab16ef17e838377e914a18fcec0fa78375833c36
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-03-03 (Tue, 03 Mar 2020)

  Changed paths:
    M llvm/lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list