Skip to content

Commit 07ef32d

Browse files
committed
remove_const_function_pointerst::functionst only holds symbol expressions
1 parent 75f021c commit 07ef32d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/goto-programs/remove_const_function_pointers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ bool remove_const_function_pointerst::try_resolve_function_call(
160160
{
161161
if(simplified_expr.type().id()==ID_code)
162162
{
163-
resolved_functions.insert(simplified_expr);
163+
resolved_functions.insert(to_symbol_expr(simplified_expr));
164164
resolved=true;
165165
}
166166
else

src/goto-programs/remove_const_function_pointers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class typecast_exprt;
3232
class remove_const_function_pointerst:public messaget
3333
{
3434
public:
35-
typedef std::unordered_set<exprt, irep_hash> functionst;
35+
typedef std::unordered_set<symbol_exprt, irep_hash> functionst;
3636
typedef std::list<exprt> expressionst;
3737
remove_const_function_pointerst(
3838
message_handlert &message_handler,

0 commit comments

Comments
 (0)