about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-06 10:43:51 +0100
committerGitHub <noreply@github.com>2022-02-06 10:43:51 +0100
commit4695c2157c394ff00bf624adbc8ac566d4b7c791 (patch)
tree2b07baa9bc94ebb84f8f8941a6fea269e27956c6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent9f4559c3452239205015a02f2695ae1ec7d5c0f2 (diff)
parentf738669b636eae466fef00f62af5d393169c676d (diff)
downloadrust-4695c2157c394ff00bf624adbc8ac566d4b7c791.tar.gz
rust-4695c2157c394ff00bf624adbc8ac566d4b7c791.zip
Rollup merge of #93489 - Amanieu:panic_no_unwind, r=nagisa
Mark the panic_no_unwind lang item as nounwind

This has 2 effects:
- It helps LLVM when inlining since it doesn't need to generate landing pads for `panic_no_unwind`.
- It makes it sound for a panic handler to unwind even if `PanicInfo::can_unwind` returns true. This will simply cause another panic once the unwind tries to go past the `panic_no_unwind` lang item. Eventually this will cause a stack overflow, which is safe.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions