Mercurial > projects > ldc
diff gen/irstate.cpp @ 311:9967a3270837 trunk
[svn r332] Fix codegen for continue within switch.
author | ChristianK |
---|---|
date | Sat, 28 Jun 2008 18:37:27 +0200 |
parents | d59c363fccad |
children | a9697749e898 |
line wrap: on
line diff
--- a/gen/irstate.cpp Sat Jun 28 11:50:28 2008 +0200 +++ b/gen/irstate.cpp Sat Jun 28 18:37:27 2008 +0200 @@ -36,13 +36,14 @@ { } -IRLoopScope::IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e) +IRLoopScope::IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e, bool isSwitch) { begin = b; end = e; //builder.SetInsertPoint(b); this->s = s; this->enclosinghandler = enclosinghandler; + this->isSwitch = isSwitch; } //////////////////////////////////////////////////////////////////////////////////////////