aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-02-10 14:28:40 +0100
committerGitHub <noreply@github.com>2025-02-10 14:28:40 +0100
commit199c791a1dbf417fdb08fbbb054d51ed398f285a (patch)
tree1f39e9c79e99b15305c669e066a64d5f2761b018 /clang/lib/CodeGen/CodeGenModule.cpp
parentbde8ce6a5c47a3e5719618797cc4143db6f871f5 (diff)
downloadllvm-199c791a1dbf417fdb08fbbb054d51ed398f285a.zip
llvm-199c791a1dbf417fdb08fbbb054d51ed398f285a.tar.gz
llvm-199c791a1dbf417fdb08fbbb054d51ed398f285a.tar.bz2
[clang][bytecode] Support partial initializers for CXXNewExprs (#126494)
For `new A[N]{1,2,3}`, we need to allocate N elements of type A, and initialize the first three with the given InitListExpr elements. However, if N is larger than 3, we need to initialize the remaining elements with the InitListExpr array filler. Similarly, for `new A[N];`, we need to initilize all fields with the constructor of A. The initializer type is a CXXConstructExpr of IncompleteArrayType in this case, which we can't generally handle.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions