From 1c522f7c35ced263528896705cbeddf0aac30a19 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 14 Oct 2011 21:52:24 +0000 Subject: [PATCH] Attempt to fix buildbot failure on Windows. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142008 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaOverload.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 2f47a1ee3d..76d39d946c 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -7511,7 +7511,8 @@ struct CompareOverloadCandidatesForDisplay { if (L->DeductionFailure.Result != R->DeductionFailure.Result) return RankDeductionFailure(L->DeductionFailure) <= RankDeductionFailure(R->DeductionFailure); - } + } else if (R->FailureKind == ovl_fail_bad_deduction) + return false; // TODO: others? } -- 2.50.1