mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +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)
|
void EnclosingTryFinally::emitCode(IRState * p)
|
||||||
{
|
{
|
||||||
assert(tf->finalbody);
|
if (tf->finalbody)
|
||||||
tf->finalbody->toIR(p);
|
tf->finalbody->toIR(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
EnclosingHandler* EnclosingTryFinally::getEnclosing()
|
EnclosingHandler* EnclosingTryFinally::getEnclosing()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue