================
@@ -2953,9 +2953,12 @@ mlir::Value
ScalarExprEmitter::VisitInitListExpr(InitListExpr *e) {
elements);
}
- // C++11 value-initialization for the scalar.
- if (numInitElements == 0)
+ if (numInitElements == 0) {
+ if (e->getType()->isVoidType())
----------------
erichkeane wrote:
Is there any cases where this check would be true but we WOULD have init
elements?
https://github.com/llvm/llvm-project/pull/229499
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits