summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-02 23:01:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-02 23:01:14 +0000
commitbb38d79ad6718ca71fdc0808048d525b041515b9 (patch)
treed822fa0704f857e33cba6698abc088e8071829db /llvm/lib/Transforms/Utils
parent1825dd0d7c3cfe01e107c6683141ca613fde7b3e (diff)
downloadbcm5719-llvm-bb38d79ad6718ca71fdc0808048d525b041515b9.tar.gz
bcm5719-llvm-bb38d79ad6718ca71fdc0808048d525b041515b9.zip
Make sorting of ConstantInt be APInt clean through use of ult function.
llvm-svn: 34853
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-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 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());
}
};
}
OpenPOWER on IntegriCloud