Mercurial > projects > ldc
comparison gen/asmstmt.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 | f99a3b393c03 |
children | 15e9762bb620 |
comparison
equal
deleted
inserted
replaced
1159:c6d6a68bb5db | 1160:7d28dcbff23e |
---|---|
770 { | 770 { |
771 llvm::BasicBlock* casebb = llvm::BasicBlock::Create("case", p->topfunc(), bb); | 771 llvm::BasicBlock* casebb = llvm::BasicBlock::Create("case", p->topfunc(), bb); |
772 sw->addCase(llvm::ConstantInt::get(llvm::IntegerType::get(32), it->second), casebb); | 772 sw->addCase(llvm::ConstantInt::get(llvm::IntegerType::get(32), it->second), casebb); |
773 | 773 |
774 p->scope() = IRScope(casebb,bb); | 774 p->scope() = IRScope(casebb,bb); |
775 DtoGoto(loc, it->first); | 775 DtoGoto(loc, it->first, enclosingFinally); |
776 } | 776 } |
777 | 777 |
778 p->scope() = IRScope(bb,oldend); | 778 p->scope() = IRScope(bb,oldend); |
779 } | 779 } |
780 } | 780 } |