================ @@ -2066,6 +2066,11 @@ LogicalResult cir::ComplexRealOp::verify() { } OpFoldResult cir::ComplexRealOp::fold(FoldAdaptor adaptor) { + if (auto complexCreateOp = dyn_cast_or_null<cir::ComplexCreateOp>( + getOperand().getDefiningOp())) { + return complexCreateOp.getOperand(0); + } ---------------- bcardosolopes wrote:
Curly braces not needed https://github.com/llvm/llvm-project/pull/147592 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits