aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-06-11 06:58:43 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-06-11 06:58:43 +0000
commit258de301b6b219b21c53e75924ad945291c5af08 (patch)
tree0456f0844d5d2d7cf9089636f98c323645c9d6d1 /lib/Sema/SemaOverload.cpp
parent5edbdcc62098e305cd55654814dcf783a3f3c477 (diff)
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
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r--lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
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) {