mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Only emit finalbody if there is one. Fixes #147.
This commit is contained in:
parent
7e0c26329a
commit
cabc236a79
1 changed files with 2 additions and 2 deletions
|
@ -246,8 +246,8 @@ EnclosingHandler* EnclosingVolatile::getEnclosing()
|
|||
|
||||
void EnclosingTryFinally::emitCode(IRState * p)
|
||||
{
|
||||
assert(tf->finalbody);
|
||||
tf->finalbody->toIR(p);
|
||||
if (tf->finalbody)
|
||||
tf->finalbody->toIR(p);
|
||||
}
|
||||
|
||||
EnclosingHandler* EnclosingTryFinally::getEnclosing()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue