File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,10 @@ Function: symbolt::to_irep
88
88
89
89
\*******************************************************************/
90
90
91
- void symbolt::to_irep (irept &dest ) const
91
+ irept symbolt::to_irep () const
92
92
{
93
+ irept dest;
94
+
93
95
dest.clear ();
94
96
dest.add (ID_type)=type;
95
97
dest.add (ID_value)=value;
@@ -116,6 +118,8 @@ void symbolt::to_irep(irept &dest) const
116
118
if (is_file_local) dest.set (" is_file_local" , true );
117
119
if (is_extern) dest.set (" is_extern" , true );
118
120
if (is_volatile) dest.set (" is_volatile" , true );
121
+
122
+ return dest;
119
123
}
120
124
121
125
/* ******************************************************************\
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class symbolt
94
94
void show (std::ostream &out) const ;
95
95
96
96
// serialization
97
- void to_irep (irept &dest ) const ;
97
+ irept to_irep () const ;
98
98
void from_irep (const irept &src);
99
99
100
100
class symbol_exprt symbol_expr () const ;
You can’t perform that action at this time.
0 commit comments