[clang] [HLSL] Allow arrays to copy-initialize (PR #127557)
Sarah Spall via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 18 08:13:54 PST 2025
================
@@ -6585,6 +6585,18 @@ void InitializationSequence::InitializeFrom(Sema &S,
}
}
+ if (S.getLangOpts().HLSL && Initializer && isa<ConstantArrayType>(DestAT)) {
----------------
spall wrote:
Would be nice to consolidate this if statement with the one below, unless HLSL Arrays can always be copy initialized, then it might be nicer left separate.
https://github.com/llvm/llvm-project/pull/127557
More information about the cfe-commits
mailing list