diff options
author | John McCall <rjmccall@apple.com> | 2010-01-14 00:56:20 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-14 00:56:20 +0000 |
commit | e81e15ed0c31f828104b339ceb66648d1c815a8b (patch) | |
tree | bd8633994c37735a4e0989b1ea80ca6007e59070 /lib/Sema/SemaOverload.cpp | |
parent | 3be16b7d9d0ab075461ed3498b4c01b30b517c0e (diff) |
Improve the diagnostic for bad conversions in overload resolution to talk
about 'object argument' vs. 'nth argument'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 5abca99896..9111cf46b5 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -4388,7 +4388,7 @@ void DiagnoseBadConversion(Sema &S, OverloadCandidate *Cand, unsigned I) { S.Diag(Fn->getLocation(), diag::note_ovl_candidate_bad_conv) << (unsigned) FnKind << FnDesc << (FromExpr ? FromExpr->getSourceRange() : SourceRange()) - << FromTy << ToTy << I+1; + << FromTy << ToTy << (unsigned) isObjectArgument << I+1; } void DiagnoseArityMismatch(Sema &S, OverloadCandidate *Cand, |