Mips: Silence a -Wcovered-switch-default
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 10 Jul 2014 16:04:04 +0000 (16:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 10 Jul 2014 16:04:04 +0000 (16:04 +0000)
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

index 3202b5e..52d5dd3 100644 (file)
@@ -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) {