[svn r197] Fixed: empty scope statement segfaulted.

This commit is contained in:
Tomas Lindquist Olsen 2008-05-07 19:34:41 +02:00
parent 61968dc9a3
commit 0dd975e1f4
2 changed files with 3 additions and 1 deletions

View file

@ -223,7 +223,8 @@ void ScopeStatement::toIR(IRState* p)
gIR->scope() = IRScope(beginbb, endbb);
statement->toIR(p);
if (statement)
statement->toIR(p);
p->scope() = IRScope(p->scopebb(),oldend);
endbb->eraseFromParent();