[clang] [CIR] Add value initialization for scalar types (PR #156036)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 29 07:59:20 PDT 2025
================
@@ -1967,9 +1971,8 @@ mlir::Value ScalarExprEmitter::VisitInitListExpr(InitListExpr *e) {
}
if (numInitElements == 0) {
- cgf.cgm.errorNYI(e->getSourceRange(),
- "InitListExpr Non VectorType with 0 init elements");
- return {};
+ // C++11 value-initialization for the scalar.
----------------
erichkeane wrote:
I might suggest moving the comment out of the 'if' and removing curleys.
https://github.com/llvm/llvm-project/pull/156036
More information about the cfe-commits
mailing list