Mercurial > projects > ldc
diff gen/llvmhelpers.cpp @ 845:d128381e086e
Only emit finalbody if there is one. Fixes #147.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 13 Dec 2008 06:48:00 +0100 |
parents | 6c2ff06c4201 |
children | a4fcc13da3cd |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Fri Dec 12 17:10:23 2008 +0100 +++ b/gen/llvmhelpers.cpp Sat Dec 13 06:48:00 2008 +0100 @@ -246,8 +246,8 @@ void EnclosingTryFinally::emitCode(IRState * p) { - assert(tf->finalbody); - tf->finalbody->toIR(p); + if (tf->finalbody) + tf->finalbody->toIR(p); } EnclosingHandler* EnclosingTryFinally::getEnclosing()