Fixed switch in IntRange::isSingleNumber method.

llvm-svn: 159540
This commit is contained in:
Stepan Dyatkovskiy 2012-07-02 17:42:46 +00:00
parent 3292d06a1b
commit 1698d50aac
1 changed files with 3 additions and 1 deletions

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 {