From: Chris Lattner Date: Tue, 13 Feb 2007 20:09:07 +0000 (+0000) Subject: revert my previous switch lowering change, which miscompiles a few programs. X-Git-Tag: android-x86-6.0-r1~1003^2~37261 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ae4f99d8430f06cfbc316f231e404201d288ef94;p=android-x86%2Fexternal-llvm.git revert my previous switch lowering change, which miscompiles a few programs. This will break a dj test until I have time to investigate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34247 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index cb003e4a956..e2bda6d4c41 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -389,8 +389,8 @@ class SelectionDAGLowering { struct CaseCmp { bool operator () (const Case& C1, const Case& C2) { assert(isa(C1.first) && isa(C2.first)); - return cast(C1.first)->getZExtValue() < - cast(C2.first)->getZExtValue(); + return cast(C1.first)->getSExtValue() < + cast(C2.first)->getSExtValue(); } };