File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,13 @@ field_address_exprt::field_address_exprt(
147
147
set (ID_component_name, component_name);
148
148
}
149
149
150
- element_address_exprt::element_address_exprt (exprt base, exprt index)
150
+ element_address_exprt::element_address_exprt (const exprt & base, exprt index)
151
151
: binary_exprt(
152
- std::move ( base),
152
+ base, // used for type, can't move
153
153
ID_element_address,
154
154
std::move (index),
155
155
pointer_typet(
156
- to_array_type (base.type()).element_type (),
156
+ to_pointer_type (base.type()).base_type (),
157
157
to_pointer_type(base.type()).get_width()))
158
158
{
159
159
}
Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ class element_address_exprt : public binary_exprt
569
569
// / constructor for element addresses.
570
570
// / The base address must be a pointer to an element.
571
571
// / The index is expected to have an integer type.
572
- element_address_exprt (exprt base, exprt index);
572
+ element_address_exprt (const exprt & base, exprt index);
573
573
574
574
const pointer_typet &type () const
575
575
{
You can’t perform that action at this time.
0 commit comments