diff gen/statements.cpp @ 1160:7d28dcbff23e

Reenable error for gotos into or out of finally blocks.
author Christian Kamm <kamm incasoftware de>
date Sat, 28 Mar 2009 19:16:53 +0100
parents 40caa8207b3e
children 8baf611f0009
line wrap: on
line diff
--- a/gen/statements.cpp	Sat Mar 28 14:39:16 2009 +0100
+++ b/gen/statements.cpp	Sat Mar 28 19:16:53 2009 +0100
@@ -1288,7 +1288,7 @@
     llvm::BasicBlock* oldend = gIR->scopeend();
     llvm::BasicBlock* bb = llvm::BasicBlock::Create("aftergoto", p->topfunc(), oldend);
 
-    DtoGoto(loc, label->ident);
+    DtoGoto(loc, label->ident, enclosingFinally);
 
     p->scope() = IRScope(bb,oldend);
 }