about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-07-14 06:06:20 +0000
committerGitHub <noreply@github.com>2025-07-14 06:06:20 +0000
commit794dc328b46520f145091771db6531bf1d5b5c4e (patch)
tree57b04ecd511abfddf715b5605fc0e091a7792d16 /compiler/rustc_codegen_llvm/src/builder
parent91a52cac82ead1d8ed75fa5bd22df228a250bb17 (diff)
parent8812d741eb54c58ee1b9bf6bd69e60f08bba941a (diff)
Merge pull request #4467 from rust-lang/rustup-2025-07-14
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder/autodiff.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
index b07d9a5cfca..5afb9a60d42 100644
--- a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
+++ b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
@@ -306,7 +306,7 @@ fn generate_enzyme_call<'ll>(
     // add outer_fn name to ad_name to make it unique, in case users apply autodiff to multiple
     // functions. Unwrap will only panic, if LLVM gave us an invalid string.
     let name = llvm::get_value_name(outer_fn);
-    let outer_fn_name = std::str::from_utf8(name).unwrap();
+    let outer_fn_name = std::str::from_utf8(&name).unwrap();
     ad_name.push_str(outer_fn_name);
 
     // Let us assume the user wrote the following function square: