diff gen/irstate.h @ 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 8d98e42ece93
line wrap: on
line diff
--- a/gen/irstate.h	Sat Jun 28 11:50:28 2008 +0200
+++ b/gen/irstate.h	Sat Jun 28 18:37:27 2008 +0200
@@ -45,9 +45,12 @@
     Statement* s;
     // the try of a TryFinally that encloses the loop
     EnclosingHandler* enclosinghandler;
+    // if it is a switch, we are a possible target for break
+    // but not for continue
+    bool isSwitch;
 
     IRLoopScope();
-    IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e);
+    IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e, bool isSwitch = false);
 };
 
 struct IRBuilderHelper