mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00

If the TargetMachine is disposed after the Context is disposed, it can lead to use after frees in some cases. I've observed this happening occasionally on code compiled for aarch64-pc-windows-msvc using `-Zstack-protector=strong` but other users have reported AVs from host aarch64-pc-windows-msvc compilers as well. (cherry picked from commit 3323e4dc04e57cc64ac77dbff2f6bf50ac6832f0)