File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -324,24 +324,24 @@ exprt cpp_typecheck_resolvet::convert_identifier(
324
324
325
325
if (symbol.is_type )
326
326
{
327
- e= type_exprt ();
327
+ e. make_nil ();
328
328
329
329
if (symbol.is_macro ) // includes typedefs
330
330
{
331
- e. type ()= symbol.type ;
331
+ e = type_exprt ( symbol.type ) ;
332
332
assert (symbol.type .is_not_nil ());
333
333
}
334
334
else if (symbol.type .id ()==ID_c_enum)
335
335
{
336
- e. type ()= c_enum_tag_typet (symbol.name );
336
+ e = type_exprt ( c_enum_tag_typet (symbol.name ) );
337
337
}
338
338
else if (symbol.type .id () == ID_struct)
339
339
{
340
- e. type () = struct_tag_typet (symbol.name );
340
+ e = type_exprt ( struct_tag_typet (symbol.name ) );
341
341
}
342
342
else if (symbol.type .id () == ID_union)
343
343
{
344
- e. type () = union_tag_typet (symbol.name );
344
+ e = type_exprt ( union_tag_typet (symbol.name ) );
345
345
}
346
346
}
347
347
else if (symbol.is_macro )
You can’t perform that action at this time.
0 commit comments