[Mlir-commits] [mlir] Fix bug in `visitDivExpr` and `visitModExpr` (PR #145290)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jun 23 05:53:08 PDT 2025


================
@@ -1178,9 +1178,9 @@ static AffineExpr getSemiAffineExprFromFlatForm(ArrayRef<int64_t> flatExprs,
       continue;
     AffineExpr expr = it.value();
     auto binaryExpr = dyn_cast<AffineBinaryOpExpr>(expr);
-    if (!binaryExpr)
-      continue;
-
+    assert(binaryExpr &&
----------------
lipracer wrote:

The cast function itself has been checked.

https://github.com/llvm/llvm-project/pull/145290


More information about the Mlir-commits mailing list