[clang] [clang] Improve diagnostics for vector builtins (PR #125673)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 06:20:34 PST 2025


================
@@ -2266,8 +2266,10 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
     if (CheckVectorElementCallArgs(&SemaRef, TheCall))
       return true;
     if (SemaRef.BuiltinElementwiseTernaryMath(
-            TheCall, /*CheckForFloatArgs*/
-            TheCall->getArg(0)->getType()->hasFloatingRepresentation()))
+            TheCall, /*ArgTyRestr*/
----------------
jhuber6 wrote:

```suggestion
            TheCall, /*ArgTyRestr=*/
```
Nit. LLVM in-line comments look like this because `clang-format` recognizes it.

https://github.com/llvm/llvm-project/pull/125673


More information about the cfe-commits mailing list