ARM: cover all sub-architecture enumerators to keep compiler happy.
authorTim Northover <tnorthover@apple.com>
Fri, 5 Sep 2014 07:56:46 +0000 (07:56 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 5 Sep 2014 07:56:46 +0000 (07:56 +0000)
No change in behaviour (hopefully).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217233 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp

index 257c73b498ecc2a6c098600ebd1f9bd73f9b24a9..e4c01a4a1d519a9240ea15fbf273556af10f9e5b 100644 (file)
@@ -90,6 +90,8 @@ std::string ARM_MC::ParseARMTriple(StringRef TT, StringRef CPU) {
   bool NoCPU = CPU == "generic" || CPU.empty();
   std::string ARMArchFeature;
   switch (triple.getSubArch()) {
+  default:
+    llvm_unreachable("invalid sub-architecture for ARM");
   case Triple::ARMSubArch_v8:
     if (NoCPU)
       // v8a: FeatureDB, FeatureFPARMv8, FeatureNEON, FeatureDSPThumb2,