From: Jeffrey Yasskin Date: Fri, 11 Jun 2010 06:58:43 +0000 (+0000) Subject: Fix the 64-bit build. operator<<(DiagnosticBuilder, long) doesn't exist, so X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=258de301b6b219b21c53e75924ad945291c5af08;p=clang Fix the 64-bit build. operator<<(DiagnosticBuilder, long) doesn't exist, so ptrdiff_t (long on 64-bit, apparently) is ambiguous between the int and unsigned int overloads. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105816 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index eda7e7ad88..d3e8243f94 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -5739,7 +5739,7 @@ Sema::PrintOverloadCandidates(OverloadCandidateSet& CandidateSet, } if (I != E) - Diag(OpLoc, diag::note_ovl_too_many_candidates) << E - I; + Diag(OpLoc, diag::note_ovl_too_many_candidates) << int(E - I); } static bool CheckUnresolvedAccess(Sema &S, OverloadExpr *E, DeclAccessPair D) {