Skip to content

Commit d57812c

Browse files
committed
fix
1 parent 382043e commit d57812c

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_codegen_llvm/src/llvm

1 file changed

+4
-4
lines changed

compiler/rustc_codegen_llvm/src/llvm/ffi.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1063,9 +1063,9 @@ pub(crate) unsafe fn enzyme_rust_forward_diff(
10631063

10641064
EnzymeCreateForwardDiff(
10651065
logic_ref, // Logic
1066-
fnc,
10671066
ptr::null(),
10681067
ptr::null(),
1068+
fnc,
10691069
ret_activity, // LLVM function, return type
10701070
input_activity.as_ptr(),
10711071
input_activity.len(), // constant arguments
@@ -1127,9 +1127,9 @@ pub(crate) unsafe fn enzyme_rust_reverse_diff(
11271127

11281128
EnzymeCreatePrimalAndGradient(
11291129
logic_ref, // Logic
1130-
fnc,
11311130
ptr::null(),
11321131
ptr::null(),
1132+
fnc,
11331133
ret_activity, // LLVM function, return type
11341134
input_activity.as_ptr(),
11351135
input_activity.len(), // constant arguments
@@ -2824,9 +2824,9 @@ pub enum CDerivativeMode {
28242824
extern "C" {
28252825
fn EnzymeCreatePrimalAndGradient<'a>(
28262826
arg1: EnzymeLogicRef,
2827-
todiff: &'a Value,
28282827
builderCtx: *const u8, // &'a Builder<'_>,
28292828
callerCtx: *const u8,// &'a Value,
2829+
todiff: &'a Value,
28302830
retType: CDIFFE_TYPE,
28312831
constant_args: *const CDIFFE_TYPE,
28322832
constant_args_size: size_t,
@@ -2849,9 +2849,9 @@ extern "C" {
28492849
extern "C" {
28502850
fn EnzymeCreateForwardDiff<'a>(
28512851
arg1: EnzymeLogicRef,
2852-
todiff: &'a Value,
28532852
builderCtx: *const u8,// &'a Builder<'_>,
28542853
callerCtx: *const u8,// &'a Value,
2854+
todiff: &'a Value,
28552855
retType: CDIFFE_TYPE,
28562856
constant_args: *const CDIFFE_TYPE,
28572857
constant_args_size: size_t,

0 commit comments

Comments
 (0)