diff --git a/src/cunumeric/index/select_template.inl b/src/cunumeric/index/select_template.inl index 1f6717fde..3231f6256 100644 --- a/src/cunumeric/index/select_template.inl +++ b/src/cunumeric/index/select_template.inl @@ -57,7 +57,7 @@ struct SelectImpl { assert(rect_c == out_rect); #endif condlist.push_back(args.inputs[i].read_accessor(rect_c)); - dense = dense && condlist[i].accessor.is_dense_row_major(out_rect); + dense = dense && condlist.back().accessor.is_dense_row_major(out_rect); } std::vector> choicelist;