From cb5716a77237c27c43025760340d649815216ba2 Mon Sep 17 00:00:00 2001 From: Irina Demeshko Date: Sat, 2 Dec 2023 20:59:39 -0800 Subject: [PATCH] Update src/cunumeric/index/select_template.inl Co-authored-by: Manolis Papadakis --- src/cunumeric/index/select_template.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;