summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/ConstantRange.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-03 23:12:40 +0000
committerChris Lattner <sabre@nondot.org>2002-09-03 23:12:40 +0000
commitd4645902e67ba4e1220aae018ef5e19a68753d3d (patch)
treec45f75069cbc3ca6fdc48f129db0578483fef208 /llvm/lib/Support/ConstantRange.cpp
parent07507a4ccb0833a0620003ebf2f32ac6d48d7cb0 (diff)
downloadbcm5719-llvm-d4645902e67ba4e1220aae018ef5e19a68753d3d.tar.gz
bcm5719-llvm-d4645902e67ba4e1220aae018ef5e19a68753d3d.zip
Minor bug fix.
llvm-svn: 3577
Diffstat (limited to 'llvm/lib/Support/ConstantRange.cpp')
-rw-r--r--llvm/lib/Support/ConstantRange.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/ConstantRange.cpp b/llvm/lib/Support/ConstantRange.cpp
index bda4a83f159..b7ef5e05110 100644
--- a/llvm/lib/Support/ConstantRange.cpp
+++ b/llvm/lib/Support/ConstantRange.cpp
@@ -67,16 +67,16 @@ ConstantRange::ConstantRange(unsigned SetCCOpcode, ConstantIntegral *C) {
Upper = C;
return;
case Instruction::SetGT:
- Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = Next(C);
+ Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
case Instruction::SetLE:
Lower = ConstantIntegral::getMinValue(C->getType());
Upper = Next(C);
return;
case Instruction::SetGE:
- Upper = ConstantIntegral::getMaxValue(C->getType());
Lower = C;
+ Upper = ConstantIntegral::getMinValue(C->getType()); // Min = Next(Max)
return;
}
}
OpenPOWER on IntegriCloud