Skip to content

Commit 18dc333

Browse files
authored
Merge branch 'master' into issue-493
2 parents 4db83f0 + 472569e commit 18dc333

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/mpi/mpi_caf.c

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5376,7 +5376,6 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
53765376
bool extent_mismatch = false;
53775377
/* Set when the first non-scalar array reference is encountered. */
53785378
bool in_array_ref = false;
5379-
bool array_extent_fixed = false;
53805379
/* Set when remote data is to be accessed through the global dynamic window. */
53815380
bool access_data_through_global_win = false;
53825381
/* Set when the remote descriptor is to accessed through the global window. */
@@ -5576,6 +5575,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
55765575
/* Do further checks, when the source is not scalar. */
55775576
else if (delta != 1)
55785577
{
5578+
in_array_ref = true;
55795579
/* When the realloc is required, then no extent may have
55805580
been set. */
55815581
extent_mismatch = GFC_DESCRIPTOR_EXTENT (dst,
@@ -5617,10 +5617,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
56175617
size *= (ptrdiff_t)delta;
56185618
}
56195619
if (in_array_ref)
5620-
{
5621-
array_extent_fixed = true;
5622-
in_array_ref = false;
5623-
}
5620+
in_array_ref = false;
56245621
break;
56255622
case CAF_REF_STATIC_ARRAY:
56265623
for (i = 0; riter->u.a.mode[i] != CAF_ARR_REF_NONE; ++i)
@@ -5703,6 +5700,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
57035700
/* Do further checks, when the source is not scalar. */
57045701
else if (delta != 1)
57055702
{
5703+
in_array_ref = true;
57065704
/* When the realloc is required, then no extent may have
57075705
been set. */
57085706
extent_mismatch = GFC_DESCRIPTOR_EXTENT (dst,
@@ -5723,10 +5721,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
57235721
size *= (ptrdiff_t)delta;
57245722
}
57255723
if (in_array_ref)
5726-
{
5727-
array_extent_fixed = true;
5728-
in_array_ref = false;
5729-
}
5724+
in_array_ref = false;
57305725
break;
57315726
default:
57325727
caf_runtime_error (unknownreftype, stat, NULL, 0);

0 commit comments

Comments
 (0)