We wanted to check if all uses of the function are direct calls, but the code didn't account for passing the function as a parameter. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D128104