mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
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:
parent
e889d837a4
commit
1379cadf8d
@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user