[commit: ghc] wip/T10137: Fix compilation error in CmmParse.y, not CmmParse.hs (f6f7b4e)

git at git.haskell.org git at git.haskell.org
Tue Mar 10 14:00:07 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T10137
Link       : http://ghc.haskell.org/trac/ghc/changeset/f6f7b4ef48eacbbdaa0009118437beccc9514d99/ghc

>---------------------------------------------------------------

commit f6f7b4ef48eacbbdaa0009118437beccc9514d99
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue Mar 10 15:00:04 2015 +0100

    Fix compilation error in CmmParse.y, not CmmParse.hs


>---------------------------------------------------------------

f6f7b4ef48eacbbdaa0009118437beccc9514d99
 compiler/cmm/CmmParse.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/cmm/CmmParse.y b/compiler/cmm/CmmParse.y
index 8ce5c1d..adf0500 100644
--- a/compiler/cmm/CmmParse.y
+++ b/compiler/cmm/CmmParse.y
@@ -1329,7 +1329,7 @@ doSwitch mb_range scrut arms deflt
 
         expr <- scrut
         -- ToDo: check for out of range and jump to default if necessary
-        emit $ mkSwitch expr (mkSwitchTargets mb_range dflt_entry table)
+        emit $ mkSwitch expr False (mkSwitchTargets mb_range dflt_entry table)
    where
         emitArm :: ([Integer],Either BlockId (CmmParse ())) -> CmmParse [(Integer,BlockId)]
         emitArm (ints,Left blockid) = return [ (i,blockid) | i <- ints ]



More information about the ghc-commits mailing list