[clang] [CIR] Upstream ComplexImagPtrOp for ComplexType (PR #144236)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 13 12:07:18 PDT 2025


================
@@ -1775,6 +1775,44 @@ OpFoldResult cir::ComplexCreateOp::fold(FoldAdaptor adaptor) {
   return cir::ConstComplexAttr::get(realAttr, imagAttr);
 }
 
+//===----------------------------------------------------------------------===//
----------------
AmrDeveloper wrote:

I am not sure if it is worth creating a function and finding a way to use `emitOpError` to report error that operator from it 🤔 

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


More information about the cfe-commits mailing list