Allow for switch values bigger than 64 bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2009-03-12 01:20:06 +00:00
parent e889d837a4
commit 1379cadf8d

View File

@ -725,7 +725,7 @@ static bool SimplifyEqualityComparisonWithOnlyPredecessor(TerminatorInst *TI,
class Sorter {
public:
bool operator() (ConstantInt * const &p, ConstantInt * const &q) const {
return p->getSExtValue() < q->getSExtValue();
return p->getValue().slt(q->getValue());
}
};