================
@@ -6585,6 +6585,18 @@ void InitializationSequence::InitializeFrom(Sema &S,
       }
     }
 
+    if (S.getLangOpts().HLSL && Initializer && isa<ConstantArrayType>(DestAT)) 
{
----------------
llvm-beanz wrote:

Looking at this a bit. `canPerformArrayCopy` fails in cases that would 
otherwise be valid in HLSL. At least for HLSL today we can always copy an array 
if the source and destination type are the same, so we don't need to check that.

https://github.com/llvm/llvm-project/pull/127557
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to