Skip to content

Commit

Permalink
fix maybeSaveCostCentre: cases were reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmar committed Aug 7, 2012
1 parent 5c3f13f commit 3cf6050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/codeGen/StgCmmExpr.hs
Expand Up @@ -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


-----------------
Expand Down

0 comments on commit 3cf6050

Please sign in to comment.