Fixed switch in IntRange::isSingleNumber method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Stepan Dyatkovskiy 2012-07-02 17:42:46 +00:00
parent ac03af4ea9
commit 7c3a65c7ed

View 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 {