comparison 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
comparison
equal deleted inserted replaced
1159:c6d6a68bb5db 1160:7d28dcbff23e
1286 DtoDwarfStopPoint(loc.linnum); 1286 DtoDwarfStopPoint(loc.linnum);
1287 1287
1288 llvm::BasicBlock* oldend = gIR->scopeend(); 1288 llvm::BasicBlock* oldend = gIR->scopeend();
1289 llvm::BasicBlock* bb = llvm::BasicBlock::Create("aftergoto", p->topfunc(), oldend); 1289 llvm::BasicBlock* bb = llvm::BasicBlock::Create("aftergoto", p->topfunc(), oldend);
1290 1290
1291 DtoGoto(loc, label->ident); 1291 DtoGoto(loc, label->ident, enclosingFinally);
1292 1292
1293 p->scope() = IRScope(bb,oldend); 1293 p->scope() = IRScope(bb,oldend);
1294 } 1294 }
1295 1295
1296 ////////////////////////////////////////////////////////////////////////////// 1296 //////////////////////////////////////////////////////////////////////////////