Skip to content

Commit 58ba12f

Browse files
ZuseZ4oli-obk
andauthored
Update compiler/rustc_codegen_llvm/src/builder/autodiff.rs
Co-authored-by: Oli Scherer <[email protected]>
1 parent 950d91b commit 58ba12f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/builder/autodiff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn generate_enzyme_call<'ll>(
6363
// functions. Unwrap will only panic, if LLVM gave us an invalid string.
6464
let name = llvm::get_value_name(outer_fn);
6565
let outer_fn_name = std::str::from_utf8(name).unwrap();
66-
ad_name.push_str(outer_fn_name.to_string().as_str());
66+
ad_name.push_str(outer_fn_name);
6767

6868
// Let us assume the user wrote the following function square:
6969
//

0 commit comments

Comments
 (0)