Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit dc8ac72

Browse files
author
Sven Verdoolaege
committed
makeMultiVal: use size of isl::multi_val
This avoids the use of a function in the C++ interface that will not be exported in mainline isl.
1 parent 9c32bf4 commit dc8ac72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc/external/detail/islpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ inline isl::space addRange(isl::space space, unsigned dim) {
292292
template <typename T>
293293
isl::multi_val makeMultiVal(isl::space s, const std::vector<T>& vals) {
294294
isl::multi_val mv = isl::multi_val::zero(s);
295-
TC_CHECK_EQ(vals.size(), s.dim(isl::dim_type::set));
295+
TC_CHECK_EQ(vals.size(), static_cast<size_t>(mv.size()));
296296
for (size_t i = 0; i < vals.size(); ++i) {
297297
mv = mv.set_val(i, isl::val(s.get_ctx(), vals[i]));
298298
}

0 commit comments

Comments
 (0)