mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Make sorting of ConstantInt be APInt clean through use of ult function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
46f9c94bdd
commit
e1c99d4c69
@ -1167,7 +1167,7 @@ namespace {
|
||||
/// applications that sort ConstantInt's to ensure uniqueness.
|
||||
struct ConstantIntOrdering {
|
||||
bool operator()(const ConstantInt *LHS, const ConstantInt *RHS) const {
|
||||
return LHS->getZExtValue() < RHS->getZExtValue();
|
||||
return LHS->getValue().ult(RHS->getValue());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user