comparison 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
comparison
equal deleted inserted replaced
844:1a8c6eedd7fd 845:d128381e086e
244 244
245 //////////////////////////////////////////////////////////////////////////////////////// 245 ////////////////////////////////////////////////////////////////////////////////////////
246 246
247 void EnclosingTryFinally::emitCode(IRState * p) 247 void EnclosingTryFinally::emitCode(IRState * p)
248 { 248 {
249 assert(tf->finalbody); 249 if (tf->finalbody)
250 tf->finalbody->toIR(p); 250 tf->finalbody->toIR(p);
251 } 251 }
252 252
253 EnclosingHandler* EnclosingTryFinally::getEnclosing() 253 EnclosingHandler* EnclosingTryFinally::getEnclosing()
254 { 254 {
255 return tf->enclosinghandler; 255 return tf->enclosinghandler;