]> granicus.if.org Git - clang/commit
When performing an array new of a multidimensional array with an initializer
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Dec 2013 01:40:16 +0000 (01:40 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Dec 2013 01:40:16 +0000 (01:40 +0000)
commit66dd177acf29cf6bd9dc427dd585291f2add173a
tree68e8f3e2c276665bd0c1094e82308556d7b28a25
parent56b610e36e47556f57aed31480962887ec22d08d
When performing an array new of a multidimensional array with an initializer
list, each element of the initializer list may provide more than one of the
base elements of the array. Be sure to initialize the right type and bump the
array pointer by the right amount.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprCXX.cpp
test/CodeGenCXX/cxx11-initializer-array-new.cpp [new file with mode: 0644]