diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-12 22:07:46 +0200 | 
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-12 22:07:46 +0200 | 
| commit | 4bc21e318cc26f688468188b88758202071b0a19 (patch) | |
| tree | f52187b27bf28c1994e40641268e9dc03e4dcb53 /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | e200c7f2e1a1ec7691a24539cf191f4c4d9d2a2c (diff) | |
| download | rust-4bc21e318cc26f688468188b88758202071b0a19.tar.gz rust-4bc21e318cc26f688468188b88758202071b0a19.zip | |
remove a couple of redundant String to String conversion
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/asm.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs index 82ca3f519f7..298cac2fd6e 100644 --- a/compiler/rustc_codegen_llvm/src/asm.rs +++ b/compiler/rustc_codegen_llvm/src/asm.rs @@ -154,7 +154,7 @@ impl<'ll, 'tcx> AsmBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> { // We prefer the latter because it matches the behavior of // Clang. if late && matches!(reg, InlineAsmRegOrRegClass::Reg(_)) { - constraints.push(reg_to_llvm(reg, Some(&in_value.layout)).to_string()); + constraints.push(reg_to_llvm(reg, Some(&in_value.layout))); } else { constraints.push(format!("{}", op_idx[&idx])); } | 
