[clang] [CIR] Implement part of ConstantExpr support for ScalarExpr (PR #173009)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 21 05:20:54 PST 2025


================
@@ -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()) {
----------------
AmrDeveloper wrote:

Thank you, I updated it

https://github.com/llvm/llvm-project/pull/173009


More information about the cfe-commits mailing list