diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-07-17 20:22:07 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-07-17 20:22:07 +0200 |
| commit | 213782dd715452afbf2af1c8f6ea5ae6a93d000c (patch) | |
| tree | 32cfda93d259af0939c7d913607241ae193390f2 /compiler/rustc_codegen_gcc/src/asm.rs | |
| parent | 12bedc3e2b81a7d74fe2986d1582644fb8ed558b (diff) | |
| download | rust-213782dd715452afbf2af1c8f6ea5ae6a93d000c.tar.gz rust-213782dd715452afbf2af1c8f6ea5ae6a93d000c.zip | |
Format cg_gcc with same formatting parameters
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/asm.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/asm.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_gcc/src/asm.rs b/compiler/rustc_codegen_gcc/src/asm.rs index aa485846cd4..1da691252ab 100644 --- a/compiler/rustc_codegen_gcc/src/asm.rs +++ b/compiler/rustc_codegen_gcc/src/asm.rs @@ -858,11 +858,7 @@ fn modifier_to_gcc( InlineAsmRegClass::AArch64(AArch64InlineAsmRegClass::reg) => modifier, InlineAsmRegClass::AArch64(AArch64InlineAsmRegClass::vreg) | InlineAsmRegClass::AArch64(AArch64InlineAsmRegClass::vreg_low16) => { - if modifier == Some('v') { - None - } else { - modifier - } + if modifier == Some('v') { None } else { modifier } } InlineAsmRegClass::AArch64(AArch64InlineAsmRegClass::preg) => { unreachable!("clobber-only") |
