diff options
Diffstat (limited to 'mlir/lib/Dialect/Utils/IndexingUtils.cpp')
-rw-r--r-- | mlir/lib/Dialect/Utils/IndexingUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Utils/IndexingUtils.cpp b/mlir/lib/Dialect/Utils/IndexingUtils.cpp index f4e29539..bb8a0d5 100644 --- a/mlir/lib/Dialect/Utils/IndexingUtils.cpp +++ b/mlir/lib/Dialect/Utils/IndexingUtils.cpp @@ -70,7 +70,7 @@ SmallVector<ExprType> delinearizeImpl(ExprType linearIndex, //===----------------------------------------------------------------------===// SmallVector<int64_t> mlir::computeSuffixProduct(ArrayRef<int64_t> sizes) { - assert(llvm::all_of(sizes, [](int64_t s) { return s > 0; }) && + assert(llvm::all_of(sizes, [](int64_t s) { return s >= 0; }) && "sizes must be nonnegative"); int64_t unit = 1; return ::computeSuffixProductImpl(sizes, unit); |