[clang] [clang][sema] consolidate diags for incompatible_vector_* (PR #83609)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 1 12:48:04 PST 2024
================
@@ -22,7 +22,7 @@ float test_dot_vector_size_mismatch(float3 p0, float2 p1) {
float test_dot_builtin_vector_size_mismatch(float3 p0, float2 p1) {
return __builtin_hlsl_dot(p0, p1);
- // expected-error at -1 {{all arguments to '__builtin_hlsl_dot' must have vectors of the same type}}
+ // expected-error at -1 {{all arguments to '__builtin_hlsl_dot' must have the same type}}
----------------
pow2clk wrote:
I don't think this error ever fires on non-vectors. I find the "vectors of the same type" wording to be clearer, but I don't feel strongly about it.
https://github.com/llvm/llvm-project/pull/83609
More information about the cfe-commits
mailing list