commit | 268edf6d6608ae2efbae164bf543e7c7f33a66a1 | [log] [tgz] |
---|---|---|
author | Dale Johannesen <dalej@apple.com> | Thu Mar 12 01:20:06 2009 +0000 |
committer | Dale Johannesen <dalej@apple.com> | Thu Mar 12 01:20:06 2009 +0000 |
tree | 3e18ca38af4517c149dbf7768f8ee168be8d3a37 | |
parent | ed1b0e40d899520ea41f99be84f968c9c21a2b08 [diff] [blame] |
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
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 @@ class Sorter { public: bool operator() (ConstantInt * const &p, ConstantInt * const &q) const { - return p->getSExtValue() < q->getSExtValue(); + return p->getValue().slt(q->getValue()); } };