Reenable error for gotos into or out of finally blocks.

This commit is contained in:
Christian Kamm
2009-03-28 19:16:53 +01:00
parent b2e601bd74
commit 0ef57dcfbe
4 changed files with 10 additions and 9 deletions

View File

@@ -1288,7 +1288,7 @@ void GotoStatement::toIR(IRState* p)
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);
}