# HG changeset patch # User David Anderson # Date 1309989314 14400 # Node ID f15aa13706406c7decb0f055e8fccb862f4eadf5 # Parent b5969264060eaa7402035dc97687234ded7bee99 Fix return omission with else-after-return (bug 4852, r=fyren). diff -r b5969264060e -r f15aa1370640 sourcepawn/compiler/sc1.c --- a/sourcepawn/compiler/sc1.c Wed Jul 06 17:50:37 2011 -0400 +++ b/sourcepawn/compiler/sc1.c Wed Jul 06 17:55:14 2011 -0400 @@ -5973,12 +5973,6 @@ setlabel(flab1); /* print false label */ statement(NULL,FALSE); /* do "else" clause */ setlabel(flab2); /* print true label */ - /* if both the "true" branch and the "false" branch ended with the same - * kind of statement, set the last statement id to that kind, rather than - * to the generic tIF; this allows for better "unreachable code" checking - */ - if (lastst==lastst_true) - return lastst; } /* if */ return tIF; }