Make sorting of ConstantInt be APInt clean through use of ult function.

llvm-svn: 34853
This commit is contained in:
Reid Spencer 2007-03-02 23:01:14 +00:00
parent 3e3980a403
commit 0f63188d6a

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