================
@@ -231,7 +231,8 @@ static LogicalResult checkConstantTypes(mlir::Operation 
*op, mlir::Type opType,
   }
 
   if (isa<cir::ZeroAttr>(attrType)) {
-    if (isa<cir::RecordType, cir::ArrayType, cir::VectorType>(opType))
+    if (isa<cir::RecordType, cir::ArrayType, cir::VectorType, 
cir::ComplexType>(
+            opType))
       return success();
     return op->emitOpError("zero expects struct or array type");
----------------
xlauko wrote:

this error message mentions only `struct` or `array` though `vector` and 
`complex` are also admissible

https://github.com/llvm/llvm-project/pull/141369
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to