diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-02 23:01:14 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-02 23:01:14 +0000 |
| commit | bb38d79ad6718ca71fdc0808048d525b041515b9 (patch) | |
| tree | d822fa0704f857e33cba6698abc088e8071829db | |
| parent | 1825dd0d7c3cfe01e107c6683141ca613fde7b3e (diff) | |
| download | bcm5719-llvm-bb38d79ad6718ca71fdc0808048d525b041515b9.tar.gz bcm5719-llvm-bb38d79ad6718ca71fdc0808048d525b041515b9.zip | |
Make sorting of ConstantInt be APInt clean through use of ult function.
llvm-svn: 34853
| -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 92b0a9d5cda..91664bf2d9d 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1167,7 +1167,7 @@ namespace { /// applications that sort ConstantInt's to ensure uniqueness. struct ConstantIntOrdering { bool operator()(const ConstantInt *LHS, const ConstantInt *RHS) const { - return LHS->getZExtValue() < RHS->getZExtValue(); + return LHS->getValue().ult(RHS->getValue()); } }; } |

