summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCast.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2019-10-23 17:54:10 -0700
committerRichard Smith <richard@metafoo.co.uk>2019-10-24 14:58:29 -0700
commit70f59b5bbc84d195b4c7ee1597dcae4e73d3c479 (patch)
tree3ab997cf0cd33142c5ab9ded2cad4e6dacdfa8b5 /clang/lib/Sema/SemaCast.cpp
parent33fca97880d3bd6ab4888b6eeb72bddff536e37a (diff)
downloadbcm5719-llvm-70f59b5bbc84d195b4c7ee1597dcae4e73d3c479.tar.gz
bcm5719-llvm-70f59b5bbc84d195b4c7ee1597dcae4e73d3c479.zip
When diagnosing an ambiguity, only note the candidates that contribute
to the ambiguity, rather than noting all viable candidates.
Diffstat (limited to 'clang/lib/Sema/SemaCast.cpp')
-rw-r--r--clang/lib/Sema/SemaCast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCast.cpp b/clang/lib/Sema/SemaCast.cpp
index 0ebb5c68f7c..2ab0a11e532 100644
--- a/clang/lib/Sema/SemaCast.cpp
+++ b/clang/lib/Sema/SemaCast.cpp
@@ -423,7 +423,7 @@ static bool tryDiagnoseOverloadedCast(Sema &S, CastType CT,
case OR_Ambiguous:
msg = diag::err_ovl_ambiguous_conversion_in_cast;
- howManyCandidates = OCD_ViableCandidates;
+ howManyCandidates = OCD_AmbiguousCandidates;
break;
case OR_Deleted:
OpenPOWER on IntegriCloud