================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits