diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2024-10-12 21:38:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-12 21:38:38 -0500 |
| commit | 39071fdc586adccf18c01e5e3a1faa39bbc00c3a (patch) | |
| tree | 18c963c7b385d49172e31bf764ced45026b90feb /compiler/rustc_codegen_llvm/src | |
| parent | ae8342aa9078c7fa28c21e9b57458a3d22cbe786 (diff) | |
| parent | 4bc21e318cc26f688468188b88758202071b0a19 (diff) | |
| download | rust-39071fdc586adccf18c01e5e3a1faa39bbc00c3a.tar.gz rust-39071fdc586adccf18c01e5e3a1faa39bbc00c3a.zip | |
Rollup merge of #131626 - matthiaskrgr:dont_string, r=lqd
remove a couple of redundant String to String conversion
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -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])); } |
