summaryrefslogtreecommitdiff
path: root/compiler/Language/Haskell/Syntax/Lit.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simon.peytonjones@gmail.com>2023-01-09 15:50:12 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-11 13:44:12 -0500
commit964284fcab6e27fe2fa5c279ea008551cbc15dbb (patch)
tree1b9043e1eccd534d1bb822f80bb6a3d62185e457 /compiler/Language/Haskell/Syntax/Lit.hs
parent300bcc1577772b6e2848c3432efb14d89af2df76 (diff)
downloadhaskell-964284fcab6e27fe2fa5c279ea008551cbc15dbb.tar.gz
Fix void-arg-adding mechanism for worker/wrapper
As #22725 shows, in worker/wrapper we must add the void argument /last/, not first. See GHC.Core.Opt.WorkWrap.Utils Note [Worker/wrapper needs to add void arg last]. That led me to to study GHC.Core.Opt.SpecConstr Note [SpecConstr needs to add void args first] which suggests the opposite! And indeed I think it's the other way round for SpecConstr -- or more precisely the void arg must precede the "extra_bndrs". That led me to some refactoring of GHC.Core.Opt.SpecConstr.calcSpecInfo.
Diffstat (limited to 'compiler/Language/Haskell/Syntax/Lit.hs')
0 files changed, 0 insertions, 0 deletions