summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-02 23:01:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-02 23:01:14 +0000
commite1c99d4c69d20731579ae462db39c3c1393f50fd (patch)
tree29d6b8f1d83dc8709824b9e1b95409e3bf019c12 /lib/Transforms/Utils/SimplifyCFG.cpp
parent46f9c94bdd8344dd41ede35294bb9b6dd390c30a (diff)
downloadllvm-e1c99d4c69d20731579ae462db39c3c1393f50fd.tar.gz
llvm-e1c99d4c69d20731579ae462db39c3c1393f50fd.tar.bz2
llvm-e1c99d4c69d20731579ae462db39c3c1393f50fd.tar.xz
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
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp
index 92b0a9d5cd..91664bf2d9 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());
}
};
}