Skip to content

Commit 14567d6

Browse files
committed
Relaxed assert for merge points
1 parent b34af77 commit 14567d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lower/merge_lattice.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,8 @@ MergePoint::MergePoint(const vector<Iterator>& iterators,
11531153
const vector<Iterator>& locators,
11541154
const vector<Iterator>& results,
11551155
bool omitPoint) : content_(new Content) {
1156-
taco_uassert(all(iterators,
1156+
taco_uassert(iterators.size() <= 1 ||
1157+
all(iterators,
11571158
[](Iterator it){ return it.hasLocate() || it.isOrdered(); }))
11581159
<< "Merge points do not support iterators that do not have locate and "
11591160
<< "that are not ordered.";

0 commit comments

Comments
 (0)