diff --git a/include/llvm/Support/IntegersSubset.h b/include/llvm/Support/IntegersSubset.h index e52a2f3cd6b..35e2dadb956 100644 --- a/include/llvm/Support/IntegersSubset.h +++ b/include/llvm/Support/IntegersSubset.h @@ -210,7 +210,7 @@ public: return true; case RANGE: return false; - default: // UNKNOWN + case UNKNOWN: if (Low == High) { const_cast(RangeType) = SINGLE_NUMBER; return true; @@ -218,6 +218,8 @@ public: const_cast(RangeType) = RANGE; return false; } + assert(!"Unknown state?!"); + return false; } const IntType& getLow() const {