From 9478f0a6ffa078c96f3f306f1a421bb41c110304 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212729 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp b/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp index 3202b5e60d4..52d5dd3ea5c 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp +++ b/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) {