|
1 | 1 | /* -*- Mode: C; c-basic-offset:4 ; -*- */ |
2 | 2 | /* |
3 | | - * Copyright (c) 2004-2017 The University of Tennessee and The University |
| 3 | + * Copyright (c) 2004-2018 The University of Tennessee and The University |
4 | 4 | * of Tennessee Research Foundation. All rights |
5 | 5 | * reserved. |
6 | 6 | * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. |
@@ -60,9 +60,8 @@ ssize_t opal_datatype_get_element_count( const opal_datatype_t* datatype, size_t |
60 | 60 | continue; |
61 | 61 | } |
62 | 62 | if( OPAL_DATATYPE_LOOP == pElems[pos_desc].elem.common.type ) { |
63 | | - ddt_loop_desc_t* loop = &(pElems[pos_desc].loop); |
64 | 63 | do { |
65 | | - PUSH_STACK( pStack, stack_pos, pos_desc, OPAL_DATATYPE_LOOP, loop->loops, 0 ); |
| 64 | + PUSH_STACK( pStack, stack_pos, pos_desc, OPAL_DATATYPE_LOOP, pElems[pos_desc].loop.loops, 0 ); |
66 | 65 | pos_desc++; |
67 | 66 | } while( OPAL_DATATYPE_LOOP == pElems[pos_desc].elem.common.type ); /* let's start another loop */ |
68 | 67 | DDT_DUMP_STACK( pStack, stack_pos, pElems, "advance loops" ); |
@@ -123,9 +122,8 @@ int32_t opal_datatype_set_element_count( const opal_datatype_t* datatype, size_t |
123 | 122 | continue; |
124 | 123 | } |
125 | 124 | if( OPAL_DATATYPE_LOOP == pElems[pos_desc].elem.common.type ) { |
126 | | - ddt_loop_desc_t* loop = &(pElems[pos_desc].loop); |
127 | 125 | do { |
128 | | - PUSH_STACK( pStack, stack_pos, pos_desc, OPAL_DATATYPE_LOOP, loop->loops, 0 ); |
| 126 | + PUSH_STACK( pStack, stack_pos, pos_desc, OPAL_DATATYPE_LOOP, pElems[pos_desc].loop.loops, 0 ); |
129 | 127 | pos_desc++; |
130 | 128 | } while( OPAL_DATATYPE_LOOP == pElems[pos_desc].elem.common.type ); /* let's start another loop */ |
131 | 129 | DDT_DUMP_STACK( pStack, stack_pos, pElems, "advance loops" ); |
@@ -182,9 +180,8 @@ int opal_datatype_compute_ptypes( opal_datatype_t* datatype ) |
182 | 180 | continue; |
183 | 181 | } |
184 | 182 | if( OPAL_DATATYPE_LOOP == pElems[pos_desc].elem.common.type ) { |
185 | | - ddt_loop_desc_t* loop = &(pElems[pos_desc].loop); |
186 | 183 | do { |
187 | | - PUSH_STACK( pStack, stack_pos, pos_desc, OPAL_DATATYPE_LOOP, loop->loops, 0 ); |
| 184 | + PUSH_STACK( pStack, stack_pos, pos_desc, OPAL_DATATYPE_LOOP, pElems[pos_desc].loop.loops, 0 ); |
188 | 185 | pos_desc++; |
189 | 186 | } while( OPAL_DATATYPE_LOOP == pElems[pos_desc].elem.common.type ); /* let's start another loop */ |
190 | 187 | DDT_DUMP_STACK( pStack, stack_pos, pElems, "advance loops" ); |
|
0 commit comments