diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-03 23:12:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-03 23:12:40 +0000 |
commit | 20d4129fefb07f6c5619045372ebe7a9f5c139e1 (patch) | |
tree | 869b0382fde4b51afbe12fb018af28fd4bff13f8 /support/lib/Support | |
parent | 252030e86b4cd252eadf702356ff3a7951247276 (diff) | |
download | external_llvm-20d4129fefb07f6c5619045372ebe7a9f5c139e1.zip external_llvm-20d4129fefb07f6c5619045372ebe7a9f5c139e1.tar.gz external_llvm-20d4129fefb07f6c5619045372ebe7a9f5c139e1.tar.bz2 |
Minor bug fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support/lib/Support')
-rw-r--r-- | support/lib/Support/ConstantRange.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/lib/Support/ConstantRange.cpp b/support/lib/Support/ConstantRange.cpp index bda4a83..b7ef5e0 100644 --- a/support/lib/Support/ConstantRange.cpp +++ b/support/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; } } |