From: Michael D. Adams Date: Mon, 21 May 2007 11:29:12 +0000 (+0000) Subject: Keep flattenCgStmts from emitting spurious 'goto' after CmmSwitch X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=067d1b6c33cd8dd20f59551a8582899ba11c4831;p=ghc-hetmet.git Keep flattenCgStmts from emitting spurious 'goto' after CmmSwitch --- diff --git a/compiler/codeGen/CgMonad.lhs b/compiler/codeGen/CgMonad.lhs index 3c596a6..0e4a8a4 100644 --- a/compiler/codeGen/CgMonad.lhs +++ b/compiler/codeGen/CgMonad.lhs @@ -241,6 +241,7 @@ flattenCgStmts id stmts = isJump (CmmJump _ _) = True isJump (CmmBranch _) = True +isJump (CmmSwitch _ _) = True isJump _ = False isOrdinaryStmt (CgStmt _) = True