aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/ConstantRange.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-15 01:02:34 +0000
committerChris Lattner <sabre@nondot.org>2007-01-15 01:02:34 +0000
commit07627050871c50466eb112143e24b498e1e7d3a6 (patch)
treeb847af72e08f24d25eb29fb4f31c3bf226055508 /lib/Support/ConstantRange.cpp
parentbbd528d83232265b19198a1b845c1a9dafc39025 (diff)
downloadexternal_llvm-07627050871c50466eb112143e24b498e1e7d3a6.zip
external_llvm-07627050871c50466eb112143e24b498e1e7d3a6.tar.gz
external_llvm-07627050871c50466eb112143e24b498e1e7d3a6.tar.bz2
Fix correlated exprs regressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ConstantRange.cpp')
-rw-r--r--lib/Support/ConstantRange.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp
index 08edf65..378ae76 100644
--- a/lib/Support/ConstantRange.cpp
+++ b/lib/Support/ConstantRange.cpp
@@ -31,7 +31,7 @@
using namespace llvm;
static ConstantInt *getMaxValue(const Type *Ty, bool isSigned = false) {
- if (Ty->isInteger()) {
+ if (Ty->isIntegral()) {
if (isSigned) {
// Calculate 011111111111111...
unsigned TypeBits = Ty->getPrimitiveSizeInBits();
@@ -46,7 +46,7 @@ static ConstantInt *getMaxValue(const Type *Ty, bool isSigned = false) {
// Static constructor to create the minimum constant for an integral type...
static ConstantInt *getMinValue(const Type *Ty, bool isSigned = false) {
- if (Ty->isInteger()) {
+ if (Ty->isIntegral()) {
if (isSigned) {
// Calculate 1111111111000000000000
unsigned TypeBits = Ty->getPrimitiveSizeInBits();