================
@@ -3475,8 +3501,8 @@ OpFoldResult cir::VecCmpOp::fold(FoldAdaptor adaptor) {
}
case cir::CmpOpKind::eq: {
if (isIntAttr) {
- cmpResult = mlir::cast<cir::IntAttr>(lhsAttr).getSInt() ==
- mlir::cast<cir::IntAttr>(rhsAttr).getSInt();
+ cmpResult = mlir::cast<cir::IntAttr>(lhsAttr).getValue() ==
----------------
andykaylor wrote:
This will work, but I'm curious why you decided to change this case.
https://github.com/llvm/llvm-project/pull/202502
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits