[Mlir-commits] [mlir] Fix bug in `visitDivExpr` and `visitModExpr` (PR #145290)
Arnab Dutta
llvmlistbot at llvm.org
Mon Jun 23 02:05:36 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 &&
----------------
arnab-polymage wrote:
Note that we are iterating over `localExprs` in the enclosing loop.
https://github.com/llvm/llvm-project/pull/145290
More information about the Mlir-commits
mailing list