Skip to content

Commit 4f7fade

Browse files
committed
Cleanup: use symbolt::symbol_expr
1 parent 8372862 commit 4f7fade

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/goto-programs/remove_function_pointers.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ void remove_function_pointerst::fix_return_type(
244244
function_symbol.mode,
245245
symbol_table);
246246

247-
symbol_exprt tmp_symbol_expr;
248-
tmp_symbol_expr.type()=tmp_symbol.type;
249-
tmp_symbol_expr.set_identifier(tmp_symbol.name);
247+
const symbol_exprt tmp_symbol_expr = tmp_symbol.symbol_expr();
250248

251249
exprt old_lhs=function_call.lhs();
252250
function_call.lhs()=tmp_symbol_expr;

0 commit comments

Comments
 (0)