diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-21 15:55:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-21 15:55:59 +0000 |
| commit | c43b82f5764c7393e7ddf5c6ef36d9b8115141c0 (patch) | |
| tree | 91b7f88301a2e8a6084265510dfde15ba8c958bc | |
| parent | f8c67c6d15b7f44a8d148f1b2de8a1a499114a90 (diff) | |
| parent | b3739f3c0e86a217599f78d99920867f30afdd18 (diff) | |
| download | rust-c43b82f5764c7393e7ddf5c6ef36d9b8115141c0.tar.gz rust-c43b82f5764c7393e7ddf5c6ef36d9b8115141c0.zip | |
Rollup merge of #140030 - EnzymeAD:autodiff-debug, r=jieyouxu
Fix autodiff debug builds r? `@oli-obk` closes: #139704 Tracking: - https://github.com/rust-lang/rust/issues/124509
| -rw-r--r-- | compiler/rustc_monomorphize/src/partitioning.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs index b1b6f10e0fe..d7690a96e10 100644 --- a/compiler/rustc_monomorphize/src/partitioning.rs +++ b/compiler/rustc_monomorphize/src/partitioning.rs @@ -254,8 +254,9 @@ where always_export_generics, ); - // We can't differentiate something that got inlined. + // We can't differentiate a function that got inlined. let autodiff_active = cfg!(llvm_enzyme) + && matches!(mono_item, MonoItem::Fn(_)) && cx .tcx .codegen_fn_attrs(mono_item.def_id()) |
