diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-07-03 16:07:28 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-07-03 16:13:25 +0000 |
| commit | 9a3aa8fdb192b42e665eb9059a0061f865b3d352 (patch) | |
| tree | 468904ede8d3ee719427ab82677f81155353982f /compiler/rustc_codegen_ssa/src | |
| parent | 779cb00311dc0bbb942dbdaefa24f98bd2d4cbbe (diff) | |
| download | rust-9a3aa8fdb192b42e665eb9059a0061f865b3d352.tar.gz rust-9a3aa8fdb192b42e665eb9059a0061f865b3d352.zip | |
Remove unnecessary check for fat LTO
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index c7d2fcef29f..433cb63882f 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -998,7 +998,7 @@ fn execute_fat_lto_work_item<B: ExtraBackendMethods>( let mut module = B::run_fat_lto(cgcx, needs_fat_lto, import_only_modules).unwrap_or_else(|e| e.raise()); - if cgcx.lto == Lto::Fat && !autodiff.is_empty() { + if !autodiff.is_empty() { let config = cgcx.config(ModuleKind::Regular); if let Err(err) = B::autodiff(cgcx, &module, autodiff, config) { err.raise(); |
