Permalink
Browse files

fix maybeSaveCostCentre: cases were reversed

  • Loading branch information...
1 parent 5c3f13f commit 3cf60503e8a96e398b021d116ddab42675d41796 @simonmar simonmar committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 compiler/codeGen/StgCmmExpr.hs
@@ -432,8 +432,8 @@ cgCase scrut bndr alt_type alts
-----------------
maybeSaveCostCentre :: Bool -> FCode (Maybe LocalReg)
maybeSaveCostCentre simple_scrut
- | simple_scrut = saveCurrentCostCentre
- | otherwise = return Nothing
+ | simple_scrut = return Nothing
+ | otherwise = saveCurrentCostCentre
-----------------

0 comments on commit 3cf6050

Please sign in to comment.