Allow for switch values bigger than 64 bits.
llvm-svn: 66751
This commit is contained in:
parent
aa75c9d8d8
commit
9cdb9bb3e5
|
@ -725,7 +725,7 @@ static bool SimplifyEqualityComparisonWithOnlyPredecessor(TerminatorInst *TI,
|
||||||
class Sorter {
|
class Sorter {
|
||||||
public:
|
public:
|
||||||
bool operator() (ConstantInt * const &p, ConstantInt * const &q) const {
|
bool operator() (ConstantInt * const &p, ConstantInt * const &q) const {
|
||||||
return p->getSExtValue() < q->getSExtValue();
|
return p->getValue().slt(q->getValue());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue