diff options
| author | Dale Johannesen <dalej@apple.com> | 2009-03-12 01:20:06 +0000 | 
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2009-03-12 01:20:06 +0000 | 
| commit | 9cdb9bb3e5adfd409ef410ed7a34e1ec19492ebc (patch) | |
| tree | fbaf9bfb605d4e3961037d403d212be606c9b1be /llvm/lib | |
| parent | aa75c9d8d80e0b5ca12b98394ea673e8e0c51df1 (diff) | |
| download | bcm5719-llvm-9cdb9bb3e5adfd409ef410ed7a34e1ec19492ebc.tar.gz bcm5719-llvm-9cdb9bb3e5adfd409ef410ed7a34e1ec19492ebc.zip | |
Allow for switch values bigger than 64 bits.
llvm-svn: 66751
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 | 
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());    }  }; | 

