forked from OSchip/llvm-project
Merge note_ovl_builtin_candidate diagnostics; NFC
There is no difference between the unary and binary case, so merge them. llvm-svn: 371403
This commit is contained in:
parent
e237520a8f
commit
783fc95f3e
|
@ -3920,10 +3920,7 @@ def note_implicit_member_target_infer_collision : Note<
|
|||
|
||||
def note_ambiguous_type_conversion: Note<
|
||||
"because of ambiguity in conversion %diff{of $ to $|between types}0,1">;
|
||||
def note_ovl_builtin_binary_candidate : Note<
|
||||
"built-in candidate %0">;
|
||||
def note_ovl_builtin_unary_candidate : Note<
|
||||
"built-in candidate %0">;
|
||||
def note_ovl_builtin_candidate : Note<"built-in candidate %0">;
|
||||
def err_ovl_no_viable_function_in_init : Error<
|
||||
"no matching constructor for initialization of %0">;
|
||||
def err_ovl_no_conversion_in_cast : Error<
|
||||
|
|
|
@ -10547,12 +10547,12 @@ static void NoteBuiltinOperatorCandidate(Sema &S, StringRef Opc,
|
|||
TypeStr += Cand->BuiltinParamTypes[0].getAsString();
|
||||
if (Cand->Conversions.size() == 1) {
|
||||
TypeStr += ")";
|
||||
S.Diag(OpLoc, diag::note_ovl_builtin_unary_candidate) << TypeStr;
|
||||
S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr;
|
||||
} else {
|
||||
TypeStr += ", ";
|
||||
TypeStr += Cand->BuiltinParamTypes[1].getAsString();
|
||||
TypeStr += ")";
|
||||
S.Diag(OpLoc, diag::note_ovl_builtin_binary_candidate) << TypeStr;
|
||||
S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue