diff options
author | Dale Johannesen <dalej@apple.com> | 2009-03-12 01:20:06 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-03-12 01:20:06 +0000 |
commit | 1379cadf8d34cd4305e1b916d4cd242df4dd474f (patch) | |
tree | 3e18ca38af4517c149dbf7768f8ee168be8d3a37 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | e889d837a4d226280525b1eafe5a6317c594ebf3 (diff) |
Allow for switch values bigger than 64 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-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 80eab1c1f8..555e30e5f0 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -725,7 +725,7 @@ static bool SimplifyEqualityComparisonWithOnlyPredecessor(TerminatorInst *TI, class Sorter { public: bool operator() (ConstantInt * const &p, ConstantInt * const &q) const { - return p->getSExtValue() < q->getSExtValue(); + return p->getValue().slt(q->getValue()); } }; |