[all-commits] [llvm/llvm-project] ef10f8: [Clang] Adjust assert from Sema::BuildCXXTypeConst...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Thu Dec 1 09:40:35 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef10f81985f665c553c818e1c5962aebb8f36f0c
https://github.com/llvm/llvm-project/commit/ef10f81985f665c553c818e1c5962aebb8f36f0c
Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
Date: 2022-12-01 (Thu, 01 Dec 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaExprCXX.cpp
M clang/test/SemaCXX/cxx0x-initializer-references.cpp
M clang/test/SemaCXX/cxx2a-consteval.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list