File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ exprt expr_initializert<nondet>::expr_initializer_rec(
263
263
{
264
264
exprt result = expr_initializer_rec (ns.follow (type), source_location);
265
265
// we might have mangled the type for arrays, so keep that
266
- if (ns. follow ( type) .id ()!= ID_array)
266
+ if (type.id () != ID_array)
267
267
result.type ()=type;
268
268
269
269
return result;
Original file line number Diff line number Diff line change @@ -104,10 +104,9 @@ exprt is_not_zero(
104
104
// Note that this returns a proper bool_typet(), not a C/C++ boolean.
105
105
// To get a C/C++ boolean, add a further typecast.
106
106
107
- const typet &src_type=
108
- src.type ().id ()==ID_c_enum_tag?
109
- ns.follow_tag (to_c_enum_tag_type (src.type ())):
110
- ns.follow (src.type ());
107
+ const typet &src_type = src.type ().id () == ID_c_enum_tag
108
+ ? ns.follow_tag (to_c_enum_tag_type (src.type ()))
109
+ : src.type ();
111
110
112
111
if (src_type.id ()==ID_bool) // already there
113
112
return src; // do nothing
You can’t perform that action at this time.
0 commit comments