Fix for T3286 in new codegen (related to T3132); plus formatting
authordias@cs.tufts.edu <unknown>
Fri, 18 Sep 2009 18:31:22 +0000 (18:31 +0000)
committerdias@cs.tufts.edu <unknown>
Fri, 18 Sep 2009 18:31:22 +0000 (18:31 +0000)
commite4622dac19c0ea5ba60078667c57e03801cdc943
tree44d558d3505ce8f5199f6badc184f4d0c1ba71c8
parent3aa09c8562ca80b8c402c6950ceea49e49c75210
Fix for T3286 in new codegen (related to T3132); plus formatting
If the scrutinee is bottom, the generated Cmm code could have a
type error when the case arm expected an unboxed floating-point
value (even though the arm should never be reached).
Now, we detect this case and avoid producing the type-incorrect
assignment.
compiler/codeGen/StgCmmExpr.hs