diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-26 14:31:33 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-12-26 15:15:14 -0500 |
commit | a9d970261299db833fd22886c27990c2a2d3232b (patch) | |
tree | cce7cddc2eaef410bae9c88e8a615ba1fa20a09c /libraries/ghc-heap/tests/closure_size.hs | |
parent | 334290b6681796dd141c964b88c541da13ce03c7 (diff) | |
download | haskell-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