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)
187187 {
188188 c_qualifiers.is_transparent_union =true ;
189189 }
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+ }
192195 else if (type.id ()==ID_void)
193196 {
194197 // we store 'void' as 'empty'
Original file line number Diff line number Diff line change @@ -1607,7 +1607,7 @@ gcc_type_attribute:
16071607 | TOK_GCC_ATTRIBUTE_TRANSPARENT_UNION
16081608 { $$ =$1 ; set($$ , ID_transparent_union); }
16091609 | 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 ); }
16111611 | TOK_GCC_ATTRIBUTE_ALIGNED
16121612 { $$ =$1 ; set($$ , ID_aligned); }
16131613 | TOK_GCC_ATTRIBUTE_ALIGNED ' (' comma_expression ' )'
You can’t perform that action at this time.
0 commit comments