diff options
author | Alan Zhao <ayzhao@google.com> | 2023-05-30 16:27:14 -0700 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2023-06-01 16:59:18 -0700 |
commit | 185b81e034ba60081023b6e59504dfffb560f3e3 (patch) | |
tree | 05bcdc017dca3fd7e87350ed1be60e027bdf1a82 /libcxx | |
parent | 42f2e6efd84464e2d02f2524b7feecb00efd6ab7 (diff) | |
download | llvm-llvmorg-16.0.5.zip llvm-llvmorg-16.0.5.tar.gz llvm-llvmorg-16.0.5.tar.bz2 |
[clang] Fix crash when passing a braced-init list to a parentehsized aggregate init expressionllvmorg-16.0.5
The previous code incorrectly assumed that we would never call
warnBracedScalarInit(...) with a EK_ParenAggInitMember. This patch fixes
the bug by warning when a scalar member is initialized via a braced-init
list when performing a parentehsized aggregate initialization. This
behavior is consistent with parentehsized list aggregate initialization.
Fixes #63008
Reviewed By: shafik
Differential Revision: https://reviews.llvm.org/D151763
Diffstat (limited to 'libcxx')
0 files changed, 0 insertions, 0 deletions