constant folding: Correct type of decodeDouble_Int64 rule
The first argument is Int64# unconditionally, so we better produce something of that type. This fixes a core lint error found in the ad package. Fixes #23019
Showing
- compiler/GHC/Core/Opt/ConstantFold.hs 1 addition, 5 deletionscompiler/GHC/Core/Opt/ConstantFold.hs
- testsuite/tests/numeric/should_compile/T23019.hs 21 additions, 0 deletionstestsuite/tests/numeric/should_compile/T23019.hs
- testsuite/tests/numeric/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/numeric/should_compile/all.T
Loading
Please register or sign in to comment