diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-29 22:17:13 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-29 22:17:13 +0000 |
| commit | 4056ca9568acd3a43a4d7ce96c4a7dec2442e071 (patch) | |
| tree | 3fd54a55f4fe98f2999bad43a2cb822fd04c64df /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
| parent | 9793f0e4d7f7feb746d1a54ce7ac6e311b98f7b1 (diff) | |
| download | bcm5719-llvm-4056ca9568acd3a43a4d7ce96c4a7dec2442e071.tar.gz bcm5719-llvm-4056ca9568acd3a43a4d7ce96c4a7dec2442e071.zip | |
Move types back to the 2.5 API.
llvm-svn: 77516
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 9fd0fdf0b0d..619e1f10935 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1947,7 +1947,7 @@ ICmpInst *LoopStrengthReduce::ChangeCompareStride(Loop *L, ICmpInst *Cond, NewCmpTy = NewCmpLHS->getType(); NewTyBits = SE->getTypeSizeInBits(NewCmpTy); - const Type *NewCmpIntTy = Context.getIntegerType(NewTyBits); + const Type *NewCmpIntTy = IntegerType::get(NewTyBits); if (RequiresTypeConversion(NewCmpTy, CmpTy)) { // Check if it is possible to rewrite it using // an iv / stride of a smaller integer type. |

