From 99ef23654278d4bad3bf76a8156ae6079d1b4b51 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 10 Jul 2014 16:04:04 +0000 Subject: [PATCH] Mips: Silence a -Wcovered-switch-default Remove a default label which covered no enumerators, replace it with a llvm_unreachable. No functionality changed. llvm-svn: 212729 --- llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp index 3202b5e..52d5dd3 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp @@ -23,9 +23,9 @@ uint8_t MipsABIFlagsSection::getFpABIValue() { if (Is32BitABI) return OddSPReg ? Val_GNU_MIPS_ABI_FP_64 : Val_GNU_MIPS_ABI_FP_64A; return Val_GNU_MIPS_ABI_FP_DOUBLE; - default: - return 0; } + + llvm_unreachable("unexpected fp abi value"); } StringRef MipsABIFlagsSection::getFpABIString(FpABIKind Value) { -- 2.7.4