Skip to content

Commit abb05c0

Browse files
committed
Remove "" case from RISC-V llvm_abiname match statement
1 parent a0d98ff commit abb05c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/metadata.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
322322
// Set the appropriate flag based on ABI
323323
// This needs to match LLVM `RISCVELFStreamer.cpp`
324324
match &*sess.target.llvm_abiname {
325-
"" | "ilp32" | "lp64" => (),
325+
"ilp32" | "lp64" => (),
326326
"ilp32f" | "lp64f" => e_flags |= elf::EF_RISCV_FLOAT_ABI_SINGLE,
327327
"ilp32d" | "lp64d" => e_flags |= elf::EF_RISCV_FLOAT_ABI_DOUBLE,
328328
// Note that the `lp64e` is still unstable as it's not (yet) part of the ELF psABI.

0 commit comments

Comments
 (0)