mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-11 05:16:19 +03:00
[svn r197] Fixed: empty scope statement segfaulted.
This commit is contained in:
parent
61968dc9a3
commit
0dd975e1f4
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue