Mercurial > projects > ldc
diff gen/irstate.c @ 14:0e86428ee567 trunk
[svn r18] * Initial support for switch statements - No string switches yet.
* Moved Statement::toIR definitions into gen/statements.c - toir.c is still too big.
* Removed some BB bloat with ScopeStatements.
author | lindquist |
---|---|
date | Wed, 03 Oct 2007 02:15:12 +0200 |
parents | 35d93ce68cf4 |
children | 2841234d2aea |
line wrap: on
line diff
--- a/gen/irstate.c Tue Oct 02 21:28:57 2007 +0200 +++ b/gen/irstate.c Wed Oct 03 02:15:12 2007 +0200 @@ -88,7 +88,8 @@ } bool IRState::scopereturned() { - return scope().returned; + //return scope().returned; + return !scopebb()->empty() && scopebb()->back().isTerminator(); } //////////////////////////////////////////////////////////////////////////////////////////