Fixed switch in IntRange::isSingleNumber method.
authorStepan Dyatkovskiy <stpworld@narod.ru>
Mon, 2 Jul 2012 17:42:46 +0000 (17:42 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Mon, 2 Jul 2012 17:42:46 +0000 (17:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159540 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IntegersSubset.h

index e52a2f3cd6b9b2f5e7648e62949a8d463c6284b6..35e2dadb9562d95457b6cd81b614f48d13eda247 100644 (file)
@@ -210,7 +210,7 @@ public:
         return true;
       case RANGE:
         return false;
-      default: // UNKNOWN
+      case UNKNOWN:
         if (Low == High) {
           const_cast<Type&>(RangeType) = SINGLE_NUMBER;
           return true;
@@ -218,6 +218,8 @@ public:
         const_cast<Type&>(RangeType) = RANGE;
         return false;
       }
+      assert(!"Unknown state?!");
+      return false;
     }
 
     const IntType& getLow() const {