We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f76d21 commit b3739f3Copy full SHA for b3739f3
compiler/rustc_monomorphize/src/partitioning.rs
@@ -254,8 +254,9 @@ where
254
always_export_generics,
255
);
256
257
- // We can't differentiate something that got inlined.
+ // We can't differentiate a function that got inlined.
258
let autodiff_active = cfg!(llvm_enzyme)
259
+ && matches!(mono_item, MonoItem::Fn(_))
260
&& cx
261
.tcx
262
.codegen_fn_attrs(mono_item.def_id())
0 commit comments