OSDN Git Service

NCF: use bit_cast in IntervalMap
authorJF Bastien <jfbastien@apple.com>
Tue, 11 Sep 2018 04:52:21 +0000 (04:52 +0000)
committerJF Bastien <jfbastien@apple.com>
Tue, 11 Sep 2018 04:52:21 +0000 (04:52 +0000)
commit250f374f3164cd928a98ea306d305f12f7d0d3d1
tree82ce9c3cd9013f57f2f0e91d8e228307956bfe75
parent185bdde26605968a0e6c051e059e7234d054aec3
NCF: use bit_cast in IntervalMap

This use is sketchy because it basically reinterprets a pointer to another pointer, but right now it's hiding in a union. After this change it'll be easy to grep for bit_cast of a pointer and un-sketch things if we want. This patch therefore obeys the law of conservation of sketch, with minor improvement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341900 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/IntervalMap.h