Skip to content

Commit db7f860

Browse files
authored
Merge pull request diffblue#3145 from smowton/smowton/cleanup/replace-symbol-interface-2
replace_symbolt: avoid a couple of direct references to expr_map
2 parents 7905492 + 568ec70 commit db7f860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/replace_symbol.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bool replace_symbolt::replace(exprt &dest) const
119119

120120
bool replace_symbolt::have_to_replace(const exprt &dest) const
121121
{
122-
if(expr_map.empty())
122+
if(empty())
123123
return false;
124124

125125
// first look at type
@@ -132,7 +132,7 @@ bool replace_symbolt::have_to_replace(const exprt &dest) const
132132
if(dest.id()==ID_symbol)
133133
{
134134
const irep_idt &identifier = to_symbol_expr(dest).get_identifier();
135-
return expr_map.find(identifier) != expr_map.end();
135+
return replaces_symbol(identifier);
136136
}
137137

138138
forall_operands(it, dest)

0 commit comments

Comments
 (0)