about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorWesley Wiser <wesleywiser@microsoft.com>2023-11-29 17:36:45 -0600
committerWesley Wiser <wesleywiser@microsoft.com>2023-11-29 18:12:53 -0600
commit3323e4dc04e57cc64ac77dbff2f6bf50ac6832f0 (patch)
tree3bcf11e952225605edf37ce26f273fd28b6c9cdc /compiler/rustc_codegen_llvm/src/errors.rs
parentb10cfcd65fd7f7b1ab9beb34798b2108de003452 (diff)
downloadrust-3323e4dc04e57cc64ac77dbff2f6bf50ac6832f0.tar.gz
rust-3323e4dc04e57cc64ac77dbff2f6bf50ac6832f0.zip
Dispose llvm::TargetMachines prior to llvm::Context being disposed
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions