2 Commits

Author SHA1 Message Date
Timm Bäder
d437e68b5b [clang][Interp][NFC] Enable constexpr-single-element-array test 2023-09-23 14:15:40 +02:00
Mariya Podchishchaeva
af682f0df8 [clang] Fix single-element array initialization in constexpr
https://reviews.llvm.org/D130791 added an improvement that in case array
element has a trivial constructor, it is evaluated once and the result is
re-used for remaining elements. Make sure the constructor is evaluated
for single-elements arrays too.

Fixes https://github.com/llvm/llvm-project/issues/60803

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D145486
2023-03-07 10:57:35 -05:00