From 66d27d6ac5db6b9c8a00d66d20c8c08849fee2f2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 6 Jul 2011 17:55:14 -0400 Subject: [PATCH] Fix return omission with else-after-return (bug 4852, r=fyren). --- sourcepawn/compiler/sc1.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sourcepawn/compiler/sc1.c b/sourcepawn/compiler/sc1.c index f06d1b58..e0d9969d 100644 --- a/sourcepawn/compiler/sc1.c +++ b/sourcepawn/compiler/sc1.c @@ -5973,12 +5973,6 @@ static int doif(void) 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; }