diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-02 23:01:14 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-02 23:01:14 +0000 |
commit | e1c99d4c69d20731579ae462db39c3c1393f50fd (patch) | |
tree | 29d6b8f1d83dc8709824b9e1b95409e3bf019c12 | |
parent | 46f9c94bdd8344dd41ede35294bb9b6dd390c30a (diff) | |
download | external_llvm-e1c99d4c69d20731579ae462db39c3c1393f50fd.zip external_llvm-e1c99d4c69d20731579ae462db39c3c1393f50fd.tar.gz external_llvm-e1c99d4c69d20731579ae462db39c3c1393f50fd.tar.bz2 |
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
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 92b0a9d..91664bf 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()); } }; } |