[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,6 +223,7 @@ void ScopeStatement::toIR(IRState* p)
gIR->scope() = IRScope(beginbb, endbb);
if (statement)
statement->toIR(p);
p->scope() = IRScope(p->scopebb(),oldend);

View file

@ -6,6 +6,7 @@ demos/glfuncs.d
demos/gltypes.d
demos/qd.d
demos/qd1.d
demos/ray.cpp
demos/ray.d
demos/sdl.d
demos/sdldemo1.d