[all-commits] [llvm/llvm-project] af682f: [clang] Fix single-element array initialization in...
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Tue Mar 7 08:06:00 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: af682f0df83f3364dac7ab92f39c7209dfbce28a
https://github.com/llvm/llvm-project/commit/af682f0df83f3364dac7ab92f39c7209dfbce28a
Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
A clang/test/SemaCXX/constexpr-single-element-array.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list