@@ -1327,7 +1327,7 @@ void parse_array_compound_literal(var_t *var,
13271327 * Parsing assigns these temporaries synthetic names via gen_name_to (".tN") 
13281328 * and they keep array metadata without pointer indirection. 
13291329 */ 
1330- bool  is_compound_literal_array_temp (var_t  * var )
1330+ bool  is_array_literal_placeholder (var_t  * var )
13311331{
13321332    return  var  &&  var -> array_size  >  0  &&  !var -> ptr_level  && 
13331333           var -> var_name [0 ] ==  '.' ;
@@ -1338,7 +1338,7 @@ var_t *scalarize_array_literal(block_t *parent,
13381338                               var_t  * array_var ,
13391339                               type_t  * hint_type )
13401340{
1341-     if  (!is_compound_literal_array_temp (array_var ))
1341+     if  (!is_array_literal_placeholder (array_var ))
13421342        return  array_var ;
13431343
13441344    type_t  * elem_type  =  hint_type  ? hint_type  : array_var -> type ;
@@ -2904,11 +2904,11 @@ void read_expr(block_t *parent, basic_block_t **bb)
29042904        bool  rs1_is_ptr_like  =  rs1  &&  (rs1 -> ptr_level  ||  rs1 -> array_size );
29052905        bool  rs2_is_ptr_like  =  rs2  &&  (rs2 -> ptr_level  ||  rs2 -> array_size );
29062906
2907-         if  (is_compound_literal_array_temp (rs1 ) &&  !rs2_is_ptr_like )
2907+         if  (is_array_literal_placeholder (rs1 ) &&  !rs2_is_ptr_like )
29082908            rs1  =  scalarize_array_literal (parent , bb , rs1 ,
29092909                                          rs2  &&  rs2 -> type  ? rs2 -> type  : NULL );
29102910
2911-         if  (is_compound_literal_array_temp (rs2 ) &&  !rs1_is_ptr_like )
2911+         if  (is_array_literal_placeholder (rs2 ) &&  !rs1_is_ptr_like )
29122912            rs2  =  scalarize_array_literal (parent , bb , rs2 ,
29132913                                          rs1  &&  rs1 -> type  ? rs1 -> type  : NULL );
29142914        /* Constant folding for binary operations */ 
@@ -3562,8 +3562,8 @@ void read_ternary_operation(block_t *parent, basic_block_t **bb)
35623562    read_expr (parent , & else_ );
35633563    bb_connect (* bb , else_ , ELSE );
35643564    var_t  * false_val  =  opstack_pop ();
3565-     bool  true_array  =  is_compound_literal_array_temp (true_val );
3566-     bool  false_array  =  is_compound_literal_array_temp (false_val );
3565+     bool  true_array  =  is_array_literal_placeholder (true_val );
3566+     bool  false_array  =  is_array_literal_placeholder (false_val );
35673567
35683568    if  (true_array  &&  !false_array )
35693569        true_val  =  scalarize_array_literal (parent , & then_ , true_val ,
@@ -3579,9 +3579,9 @@ void read_ternary_operation(block_t *parent, basic_block_t **bb)
35793579    add_insn (parent , else_ , OP_assign , vd , false_val , NULL , 0 , NULL );
35803580
35813581    var_t  * array_ref  =  NULL ;
3582-     if  (is_compound_literal_array_temp (true_val ))
3582+     if  (is_array_literal_placeholder (true_val ))
35833583        array_ref  =  true_val ;
3584-     else  if  (is_compound_literal_array_temp (false_val ))
3584+     else  if  (is_array_literal_placeholder (false_val ))
35853585        array_ref  =  false_val ;
35863586
35873587    if  (array_ref ) {
0 commit comments