[commit: ghc] wip/nested-cpr: Fix a lubDmdResult equation (da8665c)

git at git.haskell.org git at git.haskell.org
Tue Dec 3 16:12:36 UTC 2013


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

On branch  : wip/nested-cpr
Link       : http://ghc.haskell.org/trac/ghc/changeset/da8665c1d9a2a76d5ca55fb512c24ae06b8a6e6e/ghc

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

commit da8665c1d9a2a76d5ca55fb512c24ae06b8a6e6e
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Tue Nov 26 10:17:57 2013 +0000

    Fix a lubDmdResult equation


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

da8665c1d9a2a76d5ca55fb512c24ae06b8a6e6e
 compiler/basicTypes/Demand.lhs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/basicTypes/Demand.lhs b/compiler/basicTypes/Demand.lhs
index 07a66e7..cdbc4e5 100644
--- a/compiler/basicTypes/Demand.lhs
+++ b/compiler/basicTypes/Demand.lhs
@@ -743,7 +743,7 @@ lubDmdResult :: DmdResult -> DmdResult -> DmdResult
 lubDmdResult Diverges       (Dunno c2)     = Dunno c2
 lubDmdResult Diverges       Diverges       = Diverges
 lubDmdResult Diverges       (Converges c2) = Dunno c2
-lubDmdResult (Converges c1) Diverges       = Converges c1
+lubDmdResult (Converges c1) Diverges       = Dunno c1
 lubDmdResult (Converges c1) (Converges c2) = Converges (c1 `lubCPR` c2)
 lubDmdResult (Converges c1) (Dunno c2)     = Dunno (c1 `lubCPR` c2)
 lubDmdResult (Dunno c1)     Diverges       = Dunno c1



More information about the ghc-commits mailing list