From df70b28de1a48b88db9cd0ae6fc6d61f0453f11d Mon Sep 17 00:00:00 2001 From: Irina Demeshko Date: Thu, 9 Nov 2023 10:58:40 -0800 Subject: [PATCH] Update src/cunumeric/unary/scalar_unary_red_template.inl Co-authored-by: Jacob Faibussowitsch --- src/cunumeric/unary/scalar_unary_red_template.inl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cunumeric/unary/scalar_unary_red_template.inl b/src/cunumeric/unary/scalar_unary_red_template.inl index a8bc5272f..251d5ae3f 100644 --- a/src/cunumeric/unary/scalar_unary_red_template.inl +++ b/src/cunumeric/unary/scalar_unary_red_template.inl @@ -216,11 +216,12 @@ struct ScalarUnaryRed { if constexpr (KIND != VariantKind::GPU) { // Check to see if this is dense or not if (dense) { - return ScalarReductionPolicy()(volume, out, identity, *this); + ScalarReductionPolicy()(volume, out, identity, *this); + return; } } #endif - return ScalarReductionPolicy()(volume, out, identity, *this); + ScalarReductionPolicy()(volume, out, identity, *this); } };