mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
Make sorting of ConstantInt be APInt clean through use of ult function.
llvm-svn: 34853
This commit is contained in:
parent
3e3980a403
commit
0f63188d6a
@ -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