summaryrefslogtreecommitdiff
path: root/rts/RtsAPI.c
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-06-29 12:02:47 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-07-14 10:10:12 +0100
commitadd56b4632db41d572138d8bf8892a16a619d7bd (patch)
tree5f64b9b1b003784f32ae6cb7dcc5a3db071bded9 /rts/RtsAPI.c
parentc38bce737f532cec1d863d3e15bed4a8addbffd1 (diff)
downloadhaskell-wip/t20060.tar.gz
th: Weaken return type of myCoreToStgExprwip/t20060
The previous code assumed properties of the CoreToStg translation, namely that a core let expression which be translated to a single non-recursive top-level STG binding. This assumption was false, as evidenced by #20060. The consequence of this was the need to modify the call sites of `myCoreToStgExpr`, the main one being in hscCompileCoreExpr', which the meant we had to use byteCodeGen instead of stgExprToBCOs to convert the returned value to bytecode. I removed the `stgExprToBCOs` function as it is no longer used in the compiler. There is still some partiallity with this patch (the lookup in hscCompileCoreExpr') but this should be more robust that before. Fixes #20060
Diffstat (limited to 'rts/RtsAPI.c')
0 files changed, 0 insertions, 0 deletions