1
Fork 0

remove a couple of redundant String to String conversion

This commit is contained in:
Matthias Krüger 2024-10-12 22:07:46 +02:00
parent e200c7f2e1
commit 4bc21e318c
4 changed files with 4 additions and 4 deletions

View file

@ -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]));
}