projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4a0d5a0
)
Keep flattenCgStmts from emitting spurious 'goto' after CmmSwitch
author
Michael D. Adams
<t-madams@microsoft.com>
Mon, 21 May 2007 11:29:12 +0000
(11:29 +0000)
committer
Michael D. Adams
<t-madams@microsoft.com>
Mon, 21 May 2007 11:29:12 +0000
(11:29 +0000)
compiler/codeGen/CgMonad.lhs
patch
|
blob
|
history
diff --git
a/compiler/codeGen/CgMonad.lhs
b/compiler/codeGen/CgMonad.lhs
index
3c596a6
..
0e4a8a4
100644
(file)
--- 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