Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Jun 15, 2024
1 parent 3eb428b commit 37ef2b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion melior/src/pass/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ pub fn create_external<'c, T: RunExternalPass<'c>>(
*const (),
unsafe extern "C" fn(MlirOperation, MlirExternalPass, *mut c_void),
>(callback_run::<T> as *const ())),
clone: Some(transmute::<*const (), _>(callback_clone::<T> as *const ())),
clone: Some(transmute::<
*const (),
unsafe extern "C" fn(*mut c_void) -> *mut c_void,
>(callback_clone::<T> as *const ())),
},
Box::into_raw(Box::new(pass)) as _,
))
Expand Down

0 comments on commit 37ef2b2

Please sign in to comment.