================
@@ -2473,11 +2473,9 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned
BuiltinID, CallExpr *TheCall) {
break;
}
case Builtin::BI__builtin_hlsl_dot2add: {
- // Check number of arguments should be 3
if (SemaRef.checkArgCount(TheCall, 3))
return true;
- // Check first two arguments are vector of length 2 with half data type
auto checkHalfVectorOfSize2 = [](clang::QualType PassedType) -> bool {
----------------
sumitsays wrote:
Surprisingly removing these checks does not throw semantic errors, which it
should have.
https://github.com/llvm/llvm-project/pull/131237
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits