Author: Amr Hesham
Date: 2026-05-30T17:42:45+02:00
New Revision: 2396aa8ac0e8af3e46306284e62448487a33a997

URL: 
https://github.com/llvm/llvm-project/commit/2396aa8ac0e8af3e46306284e62448487a33a997
DIFF: 
https://github.com/llvm/llvm-project/commit/2396aa8ac0e8af3e46306284e62448487a33a997.diff

LOG: [CIR][NFC] Mark Complex visitExpr as unsupported (#197782)

Mark Complex visitExpr as unsupported, similar to Clang ORCG, not as NYI

Added: 
    

Modified: 
    clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp 
b/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
index 5f7e616f2f28b..53a3e6e6f2cc7 100644
--- a/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
@@ -357,8 +357,10 @@ void ComplexExprEmitter::emitStoreOfComplex(mlir::Location 
loc, mlir::Value val,
 
//===----------------------------------------------------------------------===//
 
 mlir::Value ComplexExprEmitter::VisitExpr(Expr *e) {
-  cgf.cgm.errorNYI(e->getExprLoc(), "ComplexExprEmitter VisitExpr");
-  return {};
+  cgf.cgm.errorUnsupported(e, "complex expression");
+  mlir::Type complexTy = cgf.convertType(e->getType());
+  mlir::Location loc = cgf.getLoc(e->getExprLoc());
+  return builder.getConstant(loc, cir::PoisonAttr::get(complexTy));
 }
 
 mlir::Value


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to