mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-12 18:03:13 +01:00
Reenable error for gotos into or out of finally blocks.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user