Commit 55afc498 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-01-23 11:22:50 by simonmar]

A nullary constructor in an argument position should refer to the
constructor worker, not the wrapper.  In most cases they're the same,
but when using -funbox-strict-fields (or maybe a context on a data
type?) they can be different, leading to a crash.

MERGE TO STABLE
parent 9208de5c
......@@ -538,7 +538,7 @@ coreToStgArgs (arg : args) -- Non-type argument
fvs = args_fvs `unionFVInfo` arg_fvs
stg_arg = case arg' of
StgApp v [] -> StgVarArg v
StgConApp con [] -> StgVarArg (dataConWrapId con)
StgConApp con [] -> StgVarArg (dataConWorkId con)
StgLit lit -> StgLitArg lit
_ -> pprPanic "coreToStgArgs" (ppr arg)
in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment