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 | 268edf6d6608ae2efbae164bf543e7c7f33a66a1 (patch) | |
tree | 3e18ca38af4517c149dbf7768f8ee168be8d3a37 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | ed1b0e40d899520ea41f99be84f968c9c21a2b08 (diff) | |
download | external_llvm-268edf6d6608ae2efbae164bf543e7c7f33a66a1.zip external_llvm-268edf6d6608ae2efbae164bf543e7c7f33a66a1.tar.gz external_llvm-268edf6d6608ae2efbae164bf543e7c7f33a66a1.tar.bz2 |
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 80eab1c..555e30e 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()); } }; |