We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05ba67 commit de9e29eCopy full SHA for de9e29e
src/util/pointer_expr.cpp
@@ -138,9 +138,9 @@ field_address_exprt::field_address_exprt(
138
pointer_typet _type)
139
: unary_exprt(ID_field_address, std::move(compound_ptr), std::move(_type))
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();
+ const auto &base_type = field_address_exprt::base().type();
+ PRECONDITION(base_type.id() == ID_pointer);
+ const auto &compound_type = to_pointer_type(base_type).base_type();
144
PRECONDITION(
145
compound_type.id() == ID_struct || compound_type.id() == ID_struct_tag ||
146
compound_type.id() == ID_union || compound_type.id() == ID_union_tag);
0 commit comments