Skip to content

Commit

Permalink
Handle cases with no alternatives in GHCi
Browse files Browse the repository at this point in the history
Fixes cgrun045(ghci) amongst others
  • Loading branch information
simonmar committed May 11, 2012
1 parent 4674a23 commit d0f3a8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/ghci/ByteCodeGen.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ schemeE d s p exp@(AnnTick (Breakpoint _id _fvs) _rhs)
-- ignore other kinds of tick
schemeE d s p (AnnTick _ (_, rhs)) = schemeE d s p rhs
schemeE d s p (AnnCase (_,scrut) _ _ []) = schemeE d s p scrut
-- no alts: scrut is guaranteed to diverge
schemeE d s p (AnnCase scrut _ _ [(DataAlt dc, [bind1, bind2], rhs)])
| isUnboxedTupleCon dc, VoidArg <- typeCgRep (idType bind1)
-- Convert
Expand Down

0 comments on commit d0f3a8b

Please sign in to comment.