Skip to content
  • Simon Peyton Jones's avatar
    b1f3b61a
    Fix Trac #7237; mixup with empty tuples · b1f3b61a
    Simon Peyton Jones authored
    When converting from Core to STG, we swith pattern matching on
    on a *nullary* unboxed tuple into matching using a PrimAlt on RealWorld#
       case e (RealWorld#) of { DEFAULT -> ... }
    This semms messy to me, but it works.  There was a bug in that we were
    changing to PrimAlt, but not using a DEFAULT AltCon.
    b1f3b61a
    Fix Trac #7237; mixup with empty tuples
    Simon Peyton Jones authored
    When converting from Core to STG, we swith pattern matching on
    on a *nullary* unboxed tuple into matching using a PrimAlt on RealWorld#
       case e (RealWorld#) of { DEFAULT -> ... }
    This semms messy to me, but it works.  There was a bug in that we were
    changing to PrimAlt, but not using a DEFAULT AltCon.
Loading