summaryrefslogtreecommitdiff
path: root/libraries/ghc-heap/tests/closure_size.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-12-26 14:31:33 -0500
committerBen Gamari <ben@smart-cactus.org>2019-12-26 15:15:14 -0500
commita9d970261299db833fd22886c27990c2a2d3232b (patch)
treecce7cddc2eaef410bae9c88e8a615ba1fa20a09c /libraries/ghc-heap/tests/closure_size.hs
parent334290b6681796dd141c964b88c541da13ce03c7 (diff)
downloadhaskell-a9d970261299db833fd22886c27990c2a2d3232b.tar.gz
llvmGen: Ensure that entry labels don't have predecessors
The LLVM IR forbids the entry label of a procedure from having any predecessors. In the case of a simple looping function the LLVM code generator broke this invariant, as noted in #17589. Fix this by moving the function prologue to its own basic block, as suggested by @kavon in #11649. Fixes #11649 and #17589.
Diffstat (limited to 'libraries/ghc-heap/tests/closure_size.hs')
0 files changed, 0 insertions, 0 deletions