Menu

#13 Decompiler should remove redundtant "return" statements

Reproduced
open
nobody
None
5
2015-06-03
2015-06-03
No

Any "return;" statements in tail position are redundant and should be removed:

if (foo) {
g_bar = 4;
return;
} else {
g_bar = 8;
return;
}

should be:

if (foo) {
g_bar = 4;
} else {
g_bar = 8;
}

Discussion


Log in to post a comment.