diff options
author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-12-01 09:38:13 -0800 |
---|---|---|
committer | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-12-01 09:40:18 -0800 |
commit | ef10f81985f665c553c818e1c5962aebb8f36f0c (patch) | |
tree | 19cd911e97fa1aebd11098fcb4876d331554670c /llvm/lib/CodeGen/CodeGen.cpp | |
parent | f4eb87f403367e0c96ad2836027f389b5681914d (diff) | |
download | llvm-ef10f81985f665c553c818e1c5962aebb8f36f0c.zip llvm-ef10f81985f665c553c818e1c5962aebb8f36f0c.tar.gz llvm-ef10f81985f665c553c818e1c5962aebb8f36f0c.tar.bz2 |
[Clang] Adjust assert from Sema::BuildCXXTypeConstructExpr
Currently Sema::BuildCXXTypeConstructExpr asserts that list initialization must
mean we have an InitListExpr as well. We have several cases of valid code the
result in CXXTemporaryObjectExpr in the AST instead for list initialization.
Commit 1ae689c seems to indicate that this is not unexpected, although may be a
design issue
This fixes:
https://github.com/llvm/llvm-project/issues/58302
https://github.com/llvm/llvm-project/issues/58753
https://github.com/llvm/llvm-project/issues/59100
Differential Revision: https://reviews.llvm.org/D138947
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions