mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-28 02:23:13 +01:00
Only emit finalbody if there is one. Fixes #147.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user