[commit: ghc] wip/T13861: WIP: fix travis (92f6a67)

git at git.haskell.org git at git.haskell.org
Tue Jan 2 04:21:47 UTC 2018


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

On branch  : wip/T13861
Link       : http://ghc.haskell.org/trac/ghc/changeset/92f6a671a6a8091b27931a68438cd1d822039918/ghc

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

commit 92f6a671a6a8091b27931a68438cd1d822039918
Author: Gabor Greif <ggreif at gmail.com>
Date:   Tue Jan 2 05:21:32 2018 +0100

    WIP: fix travis


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

92f6a671a6a8091b27931a68438cd1d822039918
 compiler/simplStg/StgCse.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/simplStg/StgCse.hs b/compiler/simplStg/StgCse.hs
index 0562ae5..13807a3 100644
--- a/compiler/simplStg/StgCse.hs
+++ b/compiler/simplStg/StgCse.hs
@@ -431,7 +431,7 @@ mkStgCase scrut bndr ty alts | all isBndr alts = scrut
       , let itsLit (_,_,StgLit l) = l
             itsLit _ = pprPanic "mkStgCase" (text "not StgLit")
             glits = groupBy ((==) `on` itsLit) lits
-      , sglits@(((_,_,res):_:_):others) <- sortBy (comparing $ Down . length) glits
+      , (((_,_,res):_:_):others) <- sortBy (comparing $ Down . length) glits
       = Just ((DEFAULT, [], res) : concat others ++ rest)
     lump alts | ((_:_:_),rest) <- partition isBndr alts
                  = Just ((DEFAULT, [], StgApp bndr []) : rest)



More information about the ghc-commits mailing list