summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-03-12 01:20:06 +0000
committerDale Johannesen <dalej@apple.com>2009-03-12 01:20:06 +0000
commit9cdb9bb3e5adfd409ef410ed7a34e1ec19492ebc (patch)
treefbaf9bfb605d4e3961037d403d212be606c9b1be
parentaa75c9d8d80e0b5ca12b98394ea673e8e0c51df1 (diff)
downloadbcm5719-llvm-9cdb9bb3e5adfd409ef410ed7a34e1ec19492ebc.tar.gz
bcm5719-llvm-9cdb9bb3e5adfd409ef410ed7a34e1ec19492ebc.zip
Allow for switch values bigger than 64 bits.
llvm-svn: 66751
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 80eab1c1f87..555e30e5f02 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/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());
}
};
OpenPOWER on IntegriCloud