Skip to content

Commit 846989f

Browse files
committed
formatting
1 parent 8063ec8 commit 846989f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/rustc_codegen_llvm/src/back/lto.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ fn enable_autodiff_settings(ad: &[config::AutoDiff]) {
600600
llvm::set_print_type(true);
601601
}
602602
config::AutoDiff::PrintTAFn(fun) => {
603-
llvm::set_print_type(true); // Enable general type printing
604-
llvm::set_print_type_fun(&fun); // Set specific function to analyze
603+
llvm::set_print_type(true); // Enable general type printing
604+
llvm::set_print_type_fun(&fun); // Set specific function to analyze
605605
}
606606
config::AutoDiff::Inline => {
607607
llvm::set_inline(true);

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ pub(crate) use self::Enzyme_AD::*;
5757

5858
#[cfg(llvm_enzyme)]
5959
pub(crate) mod Enzyme_AD {
60-
use libc::c_void;
6160
use std::ffi::{CString, c_char};
6261

62+
use libc::c_void;
63+
6364
unsafe extern "C" {
6465
pub(crate) fn EnzymeSetCLBool(arg1: *mut ::std::os::raw::c_void, arg2: u8);
6566
pub(crate) fn EnzymeSetCLString(arg1: *mut ::std::os::raw::c_void, arg2: *const c_char);

0 commit comments

Comments
 (0)