Keep flattenCgStmts from emitting spurious 'goto' after CmmSwitch
authorMichael D. Adams <t-madams@microsoft.com>
Mon, 21 May 2007 11:29:12 +0000 (11:29 +0000)
committerMichael D. Adams <t-madams@microsoft.com>
Mon, 21 May 2007 11:29:12 +0000 (11:29 +0000)
compiler/codeGen/CgMonad.lhs

index 3c596a6..0e4a8a4 100644 (file)
@@ -241,6 +241,7 @@ flattenCgStmts id stmts =
 
 isJump (CmmJump _ _) = True
 isJump (CmmBranch _) = True
+isJump (CmmSwitch _ _) = True
 isJump _ = False
 
 isOrdinaryStmt (CgStmt _) = True