Skip to content

Commit b22ded7

Browse files
authored
Merge pull request #6809 from tautschnig/bugfixes/rename-return
rename_symbolt: renaming in return values should affect the result
2 parents 41e9cfd + 9b8a24b commit b22ded7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/rename_symbol.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ bool rename_symbolt::rename(typet &dest) const
146146
else if(dest.id()==ID_code)
147147
{
148148
code_typet &code_type=to_code_type(dest);
149-
rename(code_type.return_type());
149+
if(!rename(code_type.return_type()))
150+
result = false;
150151

151152
for(auto &p : code_type.parameters())
152153
{

0 commit comments

Comments
 (0)