Fix correlated exprs regressions
authorChris Lattner <sabre@nondot.org>
Mon, 15 Jan 2007 01:02:34 +0000 (01:02 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Jan 2007 01:02:34 +0000 (01:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33214 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ConstantRange.cpp
lib/Support/ConstantRange.cpp

index 08edf6538b25d010d541d600d48cd1df2ced1e01..378ae767ff245ea2ccbefa8dd36b8f668169f2e5 100644 (file)
@@ -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();
index 08edf6538b25d010d541d600d48cd1df2ced1e01..378ae767ff245ea2ccbefa8dd36b8f668169f2e5 100644 (file)
@@ -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();