Skip to content

Commit 2450f74

Browse files
author
wrongtest
committed
fix trivial index map [] -> [0]
1 parent 89f9573 commit 2450f74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tir/ir/index_map.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Array<Range> IndexMapNode::MapRanges(const Array<Range>& ranges, arith::Analyzer
218218
}
219219
}
220220
auto output_dtype = [&]() {
221-
int max_bits = 0;
221+
int max_bits = ranges.empty() ? 32 : 0;
222222
for (const auto& range : ranges) {
223223
max_bits = std::max(max_bits, range->extent.dtype().bits());
224224
}

0 commit comments

Comments
 (0)