diff options
| author | Manuel Drehwald <git@manuel.drehwald.info> | 2025-02-01 20:27:14 -0500 |
|---|---|---|
| committer | Manuel Drehwald <git@manuel.drehwald.info> | 2025-02-01 20:27:14 -0500 |
| commit | 199ef412c5ab80f4b1b5316de70b8f1e721c9648 (patch) | |
| tree | c9ef31d197f4c5bb6d448b35f793fa8df1929d87 /compiler/rustc_codegen_ssa/src/back | |
| parent | 7f36543a48e52912ac6664a70c0a5b9d86509eaf (diff) | |
test compile time fixes
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -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 914f2c21fa7..ce2161a07eb 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -403,7 +403,7 @@ fn generate_lto_work<B: ExtraBackendMethods>( assert!(needs_thin_lto.is_empty()); 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 { + if cgcx.lto == Lto::Fat && !autodiff.is_empty() { let config = cgcx.config(ModuleKind::Regular); module = unsafe { module.autodiff(cgcx, autodiff, config).unwrap() }; } |
