commit | 1379cadf8d34cd4305e1b916d4cd242df4dd474f | [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 | e889d837a4d226280525b1eafe5a6317c594ebf3 [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()); } };