diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-19 21:13:56 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-19 21:13:56 +0000 |
| commit | a94d394ad2ae63071ae1fd203ea28f50066a5879 (patch) | |
| tree | ac27c27212b5f7fefcab4a0e19f9053c8ce7a6c8 /llvm/lib/Analysis | |
| parent | eaedf70eea55bda4689f5ceaa73fed2e95143173 (diff) | |
| download | bcm5719-llvm-a94d394ad2ae63071ae1fd203ea28f50066a5879.tar.gz bcm5719-llvm-a94d394ad2ae63071ae1fd203ea28f50066a5879.zip | |
For PR1043:
This is the final patch for this PR. It implements some minor cleanup
in the use of IntegerType, to wit:
1. Type::getIntegerTypeMask -> IntegerType::getBitMask
2. Type::Int*Ty changed to IntegerType* from Type*
3. ConstantInt::getType() returns IntegerType* now, not Type*
This also fixes PR1120.
Patch by Sheng Zhou.
llvm-svn: 33370
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/ConstantRange.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ConstantRange.cpp b/llvm/lib/Analysis/ConstantRange.cpp index 3b74f403b32..022c34fe409 100644 --- a/llvm/lib/Analysis/ConstantRange.cpp +++ b/llvm/lib/Analysis/ConstantRange.cpp @@ -26,6 +26,7 @@ #include "llvm/Instruction.h" #include "llvm/Instructions.h" #include "llvm/Type.h" +#include "llvm/DerivedTypes.h" #include "llvm/Support/Streams.h" #include <ostream> using namespace llvm; diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 1df54c56ca4..1ee1cf2784f 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -1333,7 +1333,7 @@ static uint64_t GetConstantFactor(SCEVHandle S) { if (SCEVTruncateExpr *T = dyn_cast<SCEVTruncateExpr>(S)) return GetConstantFactor(T->getOperand()) & - T->getType()->getIntegerTypeMask(); + cast<IntegerType>(T->getType())->getBitMask(); if (SCEVZeroExtendExpr *E = dyn_cast<SCEVZeroExtendExpr>(S)) return GetConstantFactor(E->getOperand()); |

