[clang] Short-circuit trivial constructors when evaluating arrays
authorTimm Bäder <tbaeder@redhat.com>
Fri, 29 Jul 2022 14:12:49 +0000 (16:12 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 3 Aug 2022 08:38:15 +0000 (10:38 +0200)
commit11e52ecf74e942b738fa8496960bbb2f0a7373de
tree6ac4931ab0883b77a146c451aad4622bc8a16d22
parent3d51e2727d21ddf1ba87784635513393c8dc0098
[clang] Short-circuit trivial constructors when evaluating arrays

VisitCXXConstructExpr() will later do something similar, but for large
arrays, we should try to do it once an not for every element.

Fixes #56774

Differential Revision: https://reviews.llvm.org/D130791
clang/docs/ReleaseNotes.rst
clang/lib/AST/ExprConstant.cpp