summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-27 21:06:28 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-27 21:06:28 +0000
commit61b7f5e3fd999819c1e375d98c198e8cdd1c49c3 (patch)
tree30e3d2df2367b84d5d3df32c32aee21d7ed2772d /clang/lib/Sema/Sema.cpp
parentdd02d625944336654f712c0f6ebc0354494fc088 (diff)
downloadbcm5719-llvm-61b7f5e3fd999819c1e375d98c198e8cdd1c49c3.tar.gz
bcm5719-llvm-61b7f5e3fd999819c1e375d98c198e8cdd1c49c3.zip
Separate the access-control diagnostics from other diagnostics that do not have SFINAE behavior.
llvm-svn: 124441
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 60cfd47e0f0..e37f6175496 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -452,10 +452,12 @@ Sema::SemaDiagnosticBuilder::~SemaDiagnosticBuilder() {
if (TemplateDeductionInfo *Info = SemaRef.isSFINAEContext()) {
switch (DiagnosticIDs::getDiagnosticSFINAEResponse(getDiagID())) {
+ case DiagnosticIDs::SFINAE_AccessControl:
case DiagnosticIDs::SFINAE_Report:
// Fall through; we'll report the diagnostic below.
break;
+
case DiagnosticIDs::SFINAE_SubstitutionFailure:
// Count this failure so that we know that template argument deduction
// has failed.
OpenPOWER on IntegriCloud