diff options
| author | Cheng Shao <terrorjack@type.dance> | 2023-01-31 17:07:17 +0000 |
|---|---|---|
| committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-31 20:47:03 -0500 |
| commit | f0eefa3cf058879246991747dcd18c811402f9e5 (patch) | |
| tree | ec85c5fc686c158b329bb9db53ffb367a4046a66 /hie.yaml | |
| parent | 22089f693cf6e662a58a7011adb94d7f768ad2d7 (diff) | |
| download | haskell-wip/T21776.tar.gz | |
compiler: properly handle non-word-sized CmmSwitch scrutinees in the wasm NCGwip/T21776
Currently, the wasm NCG has an implicit assumption: all CmmSwitch
scrutinees are 32-bit integers. This is not always true; #22864 is one
counter-example with a 64-bit scrutinee. This patch fixes the logic by
explicitly converting the scrutinee to a word that can be used as a
br_table operand. Fixes #22871. Also includes a regression test.
Diffstat (limited to 'hie.yaml')
0 files changed, 0 insertions, 0 deletions
