From d4645902e67ba4e1220aae018ef5e19a68753d3d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 3 Sep 2002 23:12:40 +0000 Subject: Minor bug fix. llvm-svn: 3577 --- llvm/lib/Support/ConstantRange.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/ConstantRange.cpp') 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; } } -- cgit v1.2.3