diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2016-05-26 15:24:53 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2016-05-26 15:24:53 +0100 |
commit | e9e61f18a548b70693f4ccd245bc56335c94b498 (patch) | |
tree | 435656be2c2523687e46836814cffb8cd1d613f9 /compiler/codeGen/StgCmmArgRep.hs | |
parent | 0f1e315b9274725c4a2c975f4d06a5c956cf5385 (diff) | |
download | haskell-e9e61f18a548b70693f4ccd245bc56335c94b498.tar.gz |
Reduce special-casing for nullary unboxed tuple
When we built the kind of a nullary unboxed tuple, we said, in
TysWiredIn.mk_tuple:
res_rep | arity == 0 = voidRepDataConTy
-- See Note [Nullary unboxed tuple] in Type
| otherwise = unboxedTupleRepDataConTy
But this is bogus. The Note deals with what the 'unarise' transformation
does, and up to that point it's simpler and more uniform to treat
nullary unboxed tuples the same as all the others.
Nicer now. And it fixes the Lint error in Trac #12115
Diffstat (limited to 'compiler/codeGen/StgCmmArgRep.hs')
0 files changed, 0 insertions, 0 deletions