tejohnson added a comment. I'd like @pcc to comment. I noticed there are a number of other places in this file where we will still be calling replaceAllUsesWith on a Function. How do we know which should use which method? https://reviews.llvm.org/D43027