Commit eaf8e7b
committed
Fix issue with pattern matching empty list which interferes with boolean optimisations.
The pattern matching case for empty list `switch x { | list{} =>` used to compile to `if(x)`, which interferes with boolean optimisation.
Now it compiles to `if(x ==0)` which is the same output as for `if(x == list{})`.
Fixes #72351 parent a343795 commit eaf8e7b
File tree
48 files changed
+728
-660
lines changed- compiler/ml
- lib
- es6
- js
- tests
- docstring_tests
- tests/src
- ocaml_compat
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+728
-660
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2245 | 2245 | | |
2246 | 2246 | | |
2247 | 2247 | | |
2248 | | - | |
| 2248 | + | |
| 2249 | + | |
2249 | 2250 | | |
2250 | 2251 | | |
2251 | 2252 | | |
| |||
0 commit comments