File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ field_address_exprt::field_address_exprt(
138
138
pointer_typet _type)
139
139
: unary_exprt(ID_field_address, std::move(compound_ptr), std::move(_type))
140
140
{
141
- const auto &compound_ptr_type = compound_ptr .type ();
142
- PRECONDITION (compound_ptr_type .id () == ID_pointer);
143
- const auto &compound_type = to_pointer_type (compound_ptr_type ).base_type ();
141
+ const auto &base_type = field_address_exprt::base () .type ();
142
+ PRECONDITION (base_type .id () == ID_pointer);
143
+ const auto &compound_type = to_pointer_type (base_type ).base_type ();
144
144
PRECONDITION (
145
145
compound_type.id () == ID_struct || compound_type.id () == ID_struct_tag ||
146
146
compound_type.id () == ID_union || compound_type.id () == ID_union_tag);
You can’t perform that action at this time.
0 commit comments