Commit 1de7a62
Fix F# compiler to prevent tail call emission when pinned locals are present (#18893)
* Initial plan
* Add tracking for pinned locals in TailCallChecks (WIP)
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
* Add pinned locals tracking to IlxGen (still WIP - tail calls not blocked yet)
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
* Implement fix to prevent tail calls when pinned locals are present
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
* Fix PR review comments: remove mutable, gitignore .trx files, add recursive test, add release notes, format code
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
* Move release notes from 9.0.300 to 10.0.100 as requested
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>1 parent c4001e5 commit 1de7a62
File tree
5 files changed
+76
-2
lines changed- docs/release-notes/.FSharp.Compiler.Service
- src/Compiler
- Checking
- CodeGen
- tests/FSharp.Compiler.ComponentTests/EmittedIL
5 files changed
+76
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
730 | 734 | | |
731 | 735 | | |
732 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
733 | 744 | | |
734 | 745 | | |
735 | 746 | | |
736 | 747 | | |
737 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
738 | 757 | | |
739 | 758 | | |
740 | 759 | | |
| |||
871 | 890 | | |
872 | 891 | | |
873 | 892 | | |
| 893 | + | |
874 | 894 | | |
875 | 895 | | |
876 | 896 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2689 | 2689 | | |
2690 | 2690 | | |
2691 | 2691 | | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
2692 | 2696 | | |
2693 | 2697 | | |
2694 | 2698 | | |
| |||
4371 | 4375 | | |
4372 | 4376 | | |
4373 | 4377 | | |
| 4378 | + | |
4374 | 4379 | | |
4375 | 4380 | | |
4376 | 4381 | | |
| |||
4482 | 4487 | | |
4483 | 4488 | | |
4484 | 4489 | | |
| 4490 | + | |
4485 | 4491 | | |
4486 | 4492 | | |
4487 | 4493 | | |
4488 | 4494 | | |
4489 | 4495 | | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
4490 | 4499 | | |
4491 | 4500 | | |
4492 | 4501 | | |
| |||
4495 | 4504 | | |
4496 | 4505 | | |
4497 | 4506 | | |
| 4507 | + | |
4498 | 4508 | | |
4499 | 4509 | | |
4500 | 4510 | | |
| |||
4693 | 4703 | | |
4694 | 4704 | | |
4695 | 4705 | | |
4696 | | - | |
| 4706 | + | |
4697 | 4707 | | |
4698 | 4708 | | |
4699 | 4709 | | |
| |||
5431 | 5441 | | |
5432 | 5442 | | |
5433 | 5443 | | |
| 5444 | + | |
5434 | 5445 | | |
5435 | 5446 | | |
5436 | 5447 | | |
| |||
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
0 commit comments