about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-11-30 09:28:27 +0100
committerGitHub <noreply@github.com>2023-11-30 09:28:27 +0100
commit640a43178ebc3239d85c597b0a71566b67ab8e60 (patch)
treeb9ac8afc48a65bf310b9199ebf37fb5a5fb3f084 /compiler/rustc_codegen_gcc
parent49fadeef596017014d1207872488bf5c6b4018ed (diff)
parent10110787154154cddfaaacdeebd7a4406223a25b (diff)
downloadrust-640a43178ebc3239d85c597b0a71566b67ab8e60.tar.gz
rust-640a43178ebc3239d85c597b0a71566b67ab8e60.zip
Rollup merge of #118464 - wesleywiser:fix_dispose_ordering, r=Nilstrieb
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.

I was not able to extract a self-contained test case yet so there is no accompanying test.

Fixes #118462
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions