diff options
| author | beetrees <b@beetr.ee> | 2024-10-31 19:17:07 +0000 |
|---|---|---|
| committer | beetrees <b@beetr.ee> | 2024-10-31 19:17:07 +0000 |
| commit | abb05c0fd50fed5d5a59f8fcd9ec95532c070a4a (patch) | |
| tree | f12a9a46356f29854415335ebbe712e98322cb58 | |
| parent | a0d98ff0e5b6e1f2c63fd26f68484792621b235c (diff) | |
| download | rust-abb05c0fd50fed5d5a59f8fcd9ec95532c070a4a.tar.gz rust-abb05c0fd50fed5d5a59f8fcd9ec95532c070a4a.zip | |
Remove `""` case from RISC-V `llvm_abiname` match statement
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/metadata.rs b/compiler/rustc_codegen_ssa/src/back/metadata.rs index 4c25c85569b..796acb6796f 100644 --- a/compiler/rustc_codegen_ssa/src/back/metadata.rs +++ b/compiler/rustc_codegen_ssa/src/back/metadata.rs @@ -322,7 +322,7 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static // Set the appropriate flag based on ABI // This needs to match LLVM `RISCVELFStreamer.cpp` match &*sess.target.llvm_abiname { - "" | "ilp32" | "lp64" => (), + "ilp32" | "lp64" => (), "ilp32f" | "lp64f" => e_flags |= elf::EF_RISCV_FLOAT_ABI_SINGLE, "ilp32d" | "lp64d" => e_flags |= elf::EF_RISCV_FLOAT_ABI_DOUBLE, // Note that the `lp64e` is still unstable as it's not (yet) part of the ELF psABI. |
