Skip to content

Commit

Permalink
Cleanup: use most suitable symbol_exprt constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 4, 2018
1 parent 07ef32d commit e698be9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/goto-programs/remove_function_pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,8 @@ void remove_function_pointerst::remove_function_pointer(
if(t.first=="pthread_mutex_cleanup")
continue;

symbol_exprt expr;
expr.type()=t.second;
expr.set_identifier(t.first);
functions.insert(expr);
symbol_exprt expr(t.first, t.second);
functions.insert(expr);
}
}

Expand Down

0 comments on commit e698be9

Please sign in to comment.