Testcase coming out of creduce will land in a separate commit shortly.
Also, it appears that this callback is used even in a SFINAE context where the results are never displayed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208062
91177308-0d34-0410-b5e6-
96231b3b80d8
L->FailureKind == ovl_fail_too_few_arguments) {
if (R->FailureKind == ovl_fail_too_many_arguments ||
R->FailureKind == ovl_fail_too_few_arguments) {
+ if (!L->Function || !R->Function) return !R->Function;
int LDist = std::abs((int)L->Function->getNumParams() - (int)NumArgs);
int RDist = std::abs((int)R->Function->getNumParams() - (int)NumArgs);
if (LDist == RDist)