From: Reid Spencer Date: Fri, 2 Mar 2007 23:01:14 +0000 (+0000) Subject: Make sorting of ConstantInt be APInt clean through use of ult function. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e1c99d4c69d20731579ae462db39c3c1393f50fd;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 92b0a9d5cda..91664bf2d9d 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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()); } }; }