Skip to content

Commit ee3b63c

Browse files
committed
cleanups
1 parent 2a243a6 commit ee3b63c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_codegen_llvm/src/builder/autodiff.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ fn compute_enzyme_fn_ty<'ll>(
257257
// FIXME(ZuseZ4): `outer_fn` should include upstream safety checks to
258258
// cover some assumptions of enzyme/autodiff, which could lead to UB otherwise.
259259
fn generate_enzyme_call<'ll>(
260-
_dcx: &DiagCtxt,
261260
cx: &SimpleCx<'ll>,
262261
fn_to_diff: &'ll Value,
263262
outer_fn: &'ll Value,
@@ -407,8 +406,6 @@ fn generate_enzyme_call<'ll>(
407406
builder.ret(call);
408407
}
409408

410-
dbg!(&outer_fn);
411-
412409
// Let's crash in case that we messed something up above and generated invalid IR.
413410
llvm::LLVMRustVerifyFunction(
414411
outer_fn,
@@ -465,7 +462,7 @@ pub(crate) fn differentiate<'ll>(
465462
));
466463
};
467464

468-
generate_enzyme_call(&diag_handler, &cx, fn_def, fn_target, item.attrs.clone());
465+
generate_enzyme_call(&cx, fn_def, fn_target, item.attrs.clone());
469466
}
470467

471468
// FIXME(ZuseZ4): support SanitizeHWAddress and prevent illegal/unsupported opts

0 commit comments

Comments
 (0)