================
@@ -2418,14 +2418,22 @@ OpFoldResult cir::ComplexRealOp::fold(FoldAdaptor 
adaptor) {
 
//===----------------------------------------------------------------------===//
 
 LogicalResult cir::ComplexImagOp::verify() {
-  if (getType() != getOperand().getType().getElementType()) {
+  mlir::Type operandTy = getOperand().getType();
+  if (auto complexOperandTy = mlir::dyn_cast<cir::ComplexType>(operandTy)) {
----------------
bcardosolopes wrote:

no curlies needed here

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

Reply via email to