Skip to content

Comments

WIP :: Bugfix :: Fix codegen runtime crashes: TypeLoadException, InvalidProgramException, stack corruption#19338

Draft
T-Gro wants to merge 1 commit intomainfrom
codegen/fix-runtime-crashes
Draft

WIP :: Bugfix :: Fix codegen runtime crashes: TypeLoadException, InvalidProgramException, stack corruption#19338
T-Gro wants to merge 1 commit intomainfrom
codegen/fix-runtime-crashes

Conversation

@T-Gro
Copy link
Member

@T-Gro T-Gro commented Feb 20, 2026

Fixes runtime exceptions caused by incorrect IL emitted for valid F# programs.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

✅ No release notes required

@T-Gro T-Gro force-pushed the codegen/fix-runtime-crashes branch 4 times, most recently from 68e48f0 to 3616853 Compare February 20, 2026 17:23
…k corruption

Fix 6 codegen bugs that cause hard crashes or invalid IL:
- #11132: voidptr delegate TypeLoadException
- #13447: tail. + localloc stack corruption
- #14492: inline constraints TypeLoadException in Release
- #14508: nativeptr in interfaces TypeLoadException
- #18319: literal upcast missing box instruction
- #18956: decimal literal InvalidProgramException in Debug

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro force-pushed the codegen/fix-runtime-crashes branch from 3616853 to 9549f87 Compare February 20, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

1 participant