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:
Reid Spencer 2007-03-02 23:01:14 +00:00
parent 46f9c94bdd
commit e1c99d4c69

View File

@ -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());
}
};
}