Skip to content

Commit 9a3aa8f

Browse files
committed
Remove unnecessary check for fat LTO
1 parent 779cb00 commit 9a3aa8f

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ fn execute_fat_lto_work_item<B: ExtraBackendMethods>(
998998
let mut module =
999999
B::run_fat_lto(cgcx, needs_fat_lto, import_only_modules).unwrap_or_else(|e| e.raise());
10001000

1001-
if cgcx.lto == Lto::Fat && !autodiff.is_empty() {
1001+
if !autodiff.is_empty() {
10021002
let config = cgcx.config(ModuleKind::Regular);
10031003
if let Err(err) = B::autodiff(cgcx, &module, autodiff, config) {
10041004
err.raise();

0 commit comments

Comments
 (0)