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 ac712da commit 9201e70Copy full SHA for 9201e70
compiler/rustc_codegen_llvm/src/builder/autodiff.rs
@@ -80,6 +80,23 @@ pub(crate) fn adjust_activity_to_abi<'tcx>(
80
continue;
81
}
82
83
+
84
+ let pci = PseudoCanonicalInput { typing_env: TypingEnv::fully_monomorphized(), value: *ty };
85
86
+ let layout = match tcx.layout_of(pci) {
87
+ Ok(layout) => layout.layout,
88
+ Err(_) => {
89
+ bug!("failed to compute layout for type {:?}", ty);
90
+ }
91
+ };
92
93
+ match layout.backend_repr() {
94
+ rustc_abi::BackendRepr::ScalarPair(_, _) => {
95
+ new_activities.push(da[i].clone());
96
+ new_positions.push(i + 1);
97
98
+ _ => {}
99
100
101
// now add the extra activities coming from slices
102
// Reverse order to not invalidate the indices
0 commit comments