================
@@ -141,6 +141,23 @@ class ScalarExprEmitter : public
StmtVisitor<ScalarExprEmitter, mlir::Value> {
}
mlir::Value VisitConstantExpr(ConstantExpr *e) {
+ // A constant expression of type 'void' generates no code and produces no
+ // value.
+ if (e->getType()->isVoidType()) {
----------------
ojhunt wrote:
Was just browsing the CIR PRs and noticed this minor nit: single statement if
shouldn't have braces
https://github.com/llvm/llvm-project/pull/173009
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits