[clang] [HLSL] Vector standard conversions (PR #71098)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 14 12:02:25 PST 2024


================
@@ -6432,7 +6432,7 @@ void InitializationSequence::InitializeFrom(Sema &S,
   // For HLSL ext vector types we allow list initialization behavior for C++
   // constructor syntax. This is accomplished by converting initialization
   // arguments an InitListExpr late.
-  if (S.getLangOpts().HLSL && DestType->isExtVectorType() &&
+  if (S.getLangOpts().HLSL && Args.size() > 1 && DestType->isExtVectorType() &&
----------------
bogner wrote:

This sort of looks like a separate bug fix. In any case I don't see a test for it (though maybe I missed it)

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


More information about the cfe-commits mailing list