[clang] [clang] Improve diagnostics for vector builtins (PR #125673)
Fraser Cormack via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 18 08:00:48 PST 2025
================
@@ -12411,16 +12411,13 @@ def err_builtin_is_within_lifetime_invalid_arg : Error<
"%select{non-|function }0pointer argument to '__builtin_is_within_lifetime' "
"is not allowed">;
-def err_builtin_invalid_arg_type: Error <
- "%ordinal0 argument must be "
- "%select{a vector, integer or floating point type|a matrix|"
- "a pointer to a valid matrix element type|"
- "a signed integer or floating point type|a vector type|"
- "a floating point type|"
- "a vector of integers|"
- "an unsigned integer|"
- "an 'int'|"
- "a vector of floating points}1 (was %2)">;
+def err_builtin_invalid_arg_type: Error<
+ "%ordinal0 argument must be a"
+ "%select{| scalar| vector| vector,| vector of| scalar or vector of}1"
+ "%select{| integer| signed integer| unsigned integer| 'int'|"
+ " matrix| pointer to a valid matrix element}2"
----------------
frasercrmck wrote:
Moved `matrix` to the first select, thanks.
https://github.com/llvm/llvm-project/pull/125673
More information about the cfe-commits
mailing list