scott.linder added a comment. It looks like to make this change we need to update `CallGraph` as well; it currently just uses `.getCalledFunction()`, so the graph doesn't have the edge created by the bitcasted call. https://reviews.llvm.org/D51795