File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,11 @@ void ansi_c_convert_typet::read_rec(const typet &type)
187
187
{
188
188
c_qualifiers.is_transparent_union =true ;
189
189
}
190
- else if (type.id ()==ID_vector)
191
- vector_size=to_vector_type (type).size ();
190
+ else if (type.id () == ID_frontend_vector)
191
+ {
192
+ // note that this is not yet a vector_typet -- this is a size only
193
+ vector_size = static_cast <const constant_exprt &>(type.find (ID_size));
194
+ }
192
195
else if (type.id ()==ID_void)
193
196
{
194
197
// we store 'void' as 'empty'
Original file line number Diff line number Diff line change @@ -1607,7 +1607,7 @@ gcc_type_attribute:
1607
1607
| TOK_GCC_ATTRIBUTE_TRANSPARENT_UNION
1608
1608
{ $$ =$1 ; set($$ , ID_transparent_union); }
1609
1609
| TOK_GCC_ATTRIBUTE_VECTOR_SIZE ' (' comma_expression ' )'
1610
- { $$ =$1 ; set($$ , ID_vector ); parser_stack($$ ).add(ID_size)=parser_stack($3 ); }
1610
+ { $$ =$1 ; set($$ , ID_frontend_vector ); parser_stack($$ ).add(ID_size)=parser_stack($3 ); }
1611
1611
| TOK_GCC_ATTRIBUTE_ALIGNED
1612
1612
{ $$ =$1 ; set($$ , ID_aligned); }
1613
1613
| TOK_GCC_ATTRIBUTE_ALIGNED ' (' comma_expression ' )'
You can’t perform that action at this time.
0 commit comments