Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Boemer <sbomer@gmail.com>2022-08-12 20:09:01 +0300
committerGitHub <noreply@github.com>2022-08-12 20:09:01 +0300
commitd559347987ba45c0dc3389cb96dce1ae20204513 (patch)
tree9fd6b098611a5ac0ef3a2e5a74fdfda8b7948211 /src/linker/Linker/MessageOrigin.cs
parent95ea1842abc8634d1e98d995577c4202ad3fc5c5 (diff)
Fix il corruption (#2966)
This prevents invalid IL in situations where removing the last instruction of a method would result in the last instruction being a conditional branch. There needs to be some IL in the not-taken branch for the IL to be valid, so this fixes the issue by injecting "ldnull; throw" at the end. Co-authored-by: vitek-karas <10670590+vitek-karas@users.noreply.github.com> Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
Diffstat (limited to 'src/linker/Linker/MessageOrigin.cs')
0 files changed, 0 insertions, 0 deletions