Skip to content
Snippets Groups Projects
Commit 7757465f authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Ben Gamari
Browse files

exprIsDeadEnd: Use isDeadEndAppSig to check if a function appliction is bottoming.

We used to check the divergence and that the number of arguments > arity.
But arity zero represents unknown arity so this was subtly broken for a long time!

We would check if the saturated function diverges, and if we applied >=arity arguments.
But for unknown arity functions any number of arguments is >=idArity.

This fixes #21440.

(cherry picked from commit 2b2e3020)
parent 8a682037
No related branches found
Tags ghc-8.8.2-rc1
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment