[Mlir-commits] [mlir] [mlir][nfc] Fix assertion text in IndexingUtils.cpp (PR #181826)
Akimasa Watanuki
llvmlistbot at llvm.org
Tue Feb 17 06:27:36 PST 2026
https://github.com/Men-cotton updated https://github.com/llvm/llvm-project/pull/181826
>From 17a79feb90bcf3b09e9739179f4f952c29521d7b Mon Sep 17 00:00:00 2001
From: mencotton <mencotton0410 at gmail.com>
Date: Tue, 17 Feb 2026 23:10:12 +0900
Subject: [PATCH] [mlir][nfc] Fix assertion text in IndexingUtils.cpp
---
mlir/lib/Dialect/Utils/IndexingUtils.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/lib/Dialect/Utils/IndexingUtils.cpp b/mlir/lib/Dialect/Utils/IndexingUtils.cpp
index 898c2c0beb6a6..e53f6c5314313 100644
--- a/mlir/lib/Dialect/Utils/IndexingUtils.cpp
+++ b/mlir/lib/Dialect/Utils/IndexingUtils.cpp
@@ -83,13 +83,13 @@ SmallVector<int64_t> mlir::computeElementwiseMul(ArrayRef<int64_t> v1,
int64_t mlir::computeProduct(ArrayRef<int64_t> basis) {
assert(llvm::all_of(basis, [](int64_t s) { return s > 0; }) &&
- "basis must be nonnegative");
+ "basis must be positive");
return llvm::product_of(basis);
}
int64_t mlir::linearize(ArrayRef<int64_t> offsets, ArrayRef<int64_t> basis) {
assert(llvm::all_of(basis, [](int64_t s) { return s > 0; }) &&
- "basis must be nonnegative");
+ "basis must be positive");
int64_t zero = 0;
return linearizeImpl(offsets, basis, zero);
}
More information about the Mlir-commits
mailing list