[cfe-commits] r132746 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Chandler Carruth
chandlerc at gmail.com
Wed Jun 8 03:26:03 PDT 2011
Author: chandlerc
Date: Wed Jun 8 05:26:03 2011
New Revision: 132746
URL: http://llvm.org/viewvc/llvm-project?rev=132746&view=rev
Log:
Fix a bunch more notes that were emitted even when the diagnostic they
were intended for was suppressed.
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=132746&r1=132745&r2=132746&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Wed Jun 8 05:26:03 2011
@@ -1396,27 +1396,30 @@
}
case OR_No_Viable_Function:
- if (Diagnose)
+ if (Diagnose) {
Diag(StartLoc, diag::err_ovl_no_viable_function_in_call)
<< Name << Range;
- Candidates.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs);
+ Candidates.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs);
+ }
return true;
case OR_Ambiguous:
- if (Diagnose)
+ if (Diagnose) {
Diag(StartLoc, diag::err_ovl_ambiguous_call)
<< Name << Range;
- Candidates.NoteCandidates(*this, OCD_ViableCandidates, Args, NumArgs);
+ Candidates.NoteCandidates(*this, OCD_ViableCandidates, Args, NumArgs);
+ }
return true;
case OR_Deleted: {
- if (Diagnose)
+ if (Diagnose) {
Diag(StartLoc, diag::err_ovl_deleted_call)
<< Best->Function->isDeleted()
<< Name
<< getDeletedOrUnavailableSuffix(Best->Function)
<< Range;
- Candidates.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs);
+ Candidates.NoteCandidates(*this, OCD_AllCandidates, Args, NumArgs);
+ }
return true;
}
}
More information about the cfe-commits
mailing list