mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +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:
@ -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());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user