================
@@ -1013,10 +1013,15 @@ OpFoldResult cir::CastOp::fold(FoldAdaptor adaptor) {
 
       auto srcIntTy = mlir::cast<cir::IntType>(srcTy);
       auto dstIntTy = mlir::cast<cir::IntType>(getType());
+      auto constIntAttr = srcConst.getValueAttr<cir::IntAttr>();
----------------
xakep8 wrote:

I've added the UndefAttr propogation similar to the Poison propogation PTAL.

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

Reply via email to