mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
[svn r197] Fixed: empty scope statement segfaulted.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user