diff options
-rw-r--r-- | llvm/lib/Support/ConstantRange.cpp | 4 | ||||
-rw-r--r-- | llvm/support/lib/Support/ConstantRange.cpp | 4 |
2 files changed, 4 insertions, 4 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; } } diff --git a/llvm/support/lib/Support/ConstantRange.cpp b/llvm/support/lib/Support/ConstantRange.cpp index bda4a83f159..b7ef5e05110 100644 --- a/llvm/support/lib/Support/ConstantRange.cpp +++ b/llvm/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; } } |