================
@@ -330,6 +330,12 @@ static LogicalResult checkConstantTypes(mlir::Operation
*op, mlir::Type opType,
"zero expects struct, array, vector, or complex type");
}
+ if (isa<cir::UndefAttr>(attrType)) {
+ if (!::mlir::isa<cir::VoidType>(opType))
----------------
xlauko wrote:
or add `mlir::` in both cases here?
https://github.com/llvm/llvm-project/pull/169721
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits