================
@@ -5992,6 +5992,64 @@ Expr *unwrapParenList(Expr *Base) {
} // namespace
+static void AddHLSLVectorSwizzleCompletions(Sema &SemaRef,
+ ResultBuilder &Results,
+ const ExtVectorType *VT) {
+
+ unsigned NumElts = VT->getNumElements();
+ if (NumElts > 4)
+ NumElts = 4;
----------------
V-FEXrt wrote:
swizzle only works for vectors 4 or smaller. I think we should just return here?
https://godbolt.org/z/fWMWvdM7Y
```suggestion
return;
```
https://github.com/llvm/llvm-project/pull/217381
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits