diff options
| author | Martin Nordholts <martin.nordholts@codetale.se> | 2025-07-07 09:22:28 +0200 |
|---|---|---|
| committer | Martin Nordholts <martin.nordholts@codetale.se> | 2025-07-07 09:34:34 +0200 |
| commit | 1eff043e7aab5f5634c1e29f5cf161a6437bcfa3 (patch) | |
| tree | 0b6ed3eaeb43207842861c6bd47cb1b336a65d99 | |
| parent | 0d11be5aabe0cd49609fff5fce57c4691a22fe55 (diff) | |
| download | rust-1eff043e7aab5f5634c1e29f5cf161a6437bcfa3.tar.gz rust-1eff043e7aab5f5634c1e29f5cf161a6437bcfa3.zip | |
rustc_codegen_llvm: Remove reference to non-existing `no_landing_pads()`
Removing this reference was forgotten in eb4725fc54056. Grepping for no_landing_pads returns no hits after this.
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/attributes.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index adb53e0b66c..5a065f31c30 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -377,12 +377,11 @@ pub(crate) fn llfn_attrs_from_instance<'ll, 'tcx>( // that no exceptions passes by it. This is normally the case for the // ELF x86-64 abi, but it can be disabled for some compilation units. // - // Typically when we're compiling with `-C panic=abort` (which implies this - // `no_landing_pads` check) we don't need `uwtable` because we can't - // generate any exceptions! On Windows, however, exceptions include other - // events such as illegal instructions, segfaults, etc. This means that on - // Windows we end up still needing the `uwtable` attribute even if the `-C - // panic=abort` flag is passed. + // Typically when we're compiling with `-C panic=abort` we don't need + // `uwtable` because we can't generate any exceptions! On Windows, however, + // exceptions include other events such as illegal instructions, segfaults, + // etc. This means that on Windows we end up still needing the `uwtable` + // attribute even if the `-C panic=abort` flag is passed. // // You can also find more info on why Windows always requires uwtables here: // https://bugzilla.mozilla.org/show_bug.cgi?id=1302078 |
