File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 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(
147147 set (ID_component_name, component_name);
148148}
149149
150- element_address_exprt::element_address_exprt (exprt base, exprt index)
150+ element_address_exprt::element_address_exprt (const exprt & base, exprt index)
151151 : binary_exprt(
152- std::move ( base) ,
152+ base,
153153 ID_element_address,
154154 std::move (index),
155155 pointer_typet(
156- to_array_type (base.type()).element_type (),
156+ to_pointer_type (base.type()).base_type (),
157157 to_pointer_type(base.type()).get_width()))
158158{
159159}
Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ class element_address_exprt : public binary_exprt
569569 // / constructor for element addresses.
570570 // / The base address must be a pointer to an element.
571571 // / 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);
573573
574574 const pointer_typet &type () const
575575 {
You can’t perform that action at this time.
0 commit comments