Mercurial > projects > ldc
changeset 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 | 1a8c6eedd7fd |
children | bc982f1ad106 |
files | gen/llvmhelpers.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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()