aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-07-02 17:42:46 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-07-02 17:42:46 +0000
commit7c3a65c7edceb3a013cf49d376c3bc016eb871bf (patch)
treed346acc7c8013b4e4a36e72555e989b9cf43e41f
parentac03af4ea9f6a33164dbb5a0bc59ccc738939a4c (diff)
Fixed switch in IntRange::isSingleNumber method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159540 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/IntegersSubset.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/IntegersSubset.h b/include/llvm/Support/IntegersSubset.h
index e52a2f3cd6..35e2dadb95 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<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 {