Allow for switch values bigger than 64 bits.

llvm-svn: 66751
This commit is contained in:
Dale Johannesen 2009-03-12 01:20:06 +00:00
parent aa75c9d8d8
commit 9cdb9bb3e5
1 changed files with 1 additions and 1 deletions

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());
}
};