summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-13 20:09:07 +0000
committerChris Lattner <sabre@nondot.org>2007-02-13 20:09:07 +0000
commit2fbff4d2dc044091aef1511df0846e5732c5c694 (patch)
tree1678191d6a5871e7663bdfbcb539cbb229431280 /llvm/lib
parent50c6a8c3a1851f1e2d191c478ab23b7f7fa3a95c (diff)
downloadbcm5719-llvm-2fbff4d2dc044091aef1511df0846e5732c5c694.tar.gz
bcm5719-llvm-2fbff4d2dc044091aef1511df0846e5732c5c694.zip
revert my previous switch lowering change, which miscompiles a few programs.
This will break a dj test until I have time to investigate. llvm-svn: 34247
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index cb003e4a956..e2bda6d4c41 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -389,8 +389,8 @@ class SelectionDAGLowering {
struct CaseCmp {
bool operator () (const Case& C1, const Case& C2) {
assert(isa<ConstantInt>(C1.first) && isa<ConstantInt>(C2.first));
- return cast<const ConstantInt>(C1.first)->getZExtValue() <
- cast<const ConstantInt>(C2.first)->getZExtValue();
+ return cast<const ConstantInt>(C1.first)->getSExtValue() <
+ cast<const ConstantInt>(C2.first)->getSExtValue();
}
};
OpenPOWER on IntegriCloud