mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-11 17:33:13 +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();
|
||||
|
||||
Reference in New Issue
Block a user