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)
commitc0d77e80acb64a534199330018dfc2c92b420c88
tree7593e2466b95a3b85b9cabd6d8a18fc98c702bc6
parenta9076e35d4e6b0c53de2415e7f79ec52aa69d004
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.

llvm-svn: 341900
llvm/include/llvm/ADT/IntervalMap.h