================
@@ -2192,9 +2195,8 @@ checkMathBuiltinElementType(Sema &S, SourceLocation Loc, 
QualType ArgTy,
     break;
   case Sema::EltwiseBuiltinArgTyRestriction::FloatTy:
     if (!EltTy->isRealFloatingType()) {
-      return S.Diag(Loc, diag::err_builtin_invalid_arg_type)
-             << ArgOrdinal << /* scalar or vector */ 5 << /* no int */ 0
-             << /* floating-point */ 1 << ArgTy;
+      return S.Diag(Loc, diag::err_builtin_requires_any_fp_type)
----------------
NeKon69 wrote:

This is so much more hassle than i expected.. especially the "type/types" in 
`err_builtin_invalid_arg_type` it uses very weird detection on whether you are 
supposed to have it "types" as in multiple types, or just "type". ill talk 
about this later in the future PR i guess..

https://github.com/llvm/llvm-project/pull/185304
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to