diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-17 02:02:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-17 02:02:52 +0000 |
commit | edf7cf80d863c7a14f19383fd35cb122337696a8 (patch) | |
tree | 40662899269f828b51c3f32346761d4fad2476a9 | |
parent | 276b77e66c538264d79b78c00bbad9f890f58011 (diff) |
Don't create ConstantInts with pointer type. This fixes a
regression in 403.gcc in PIC_CODEGEN=1 and DISABLE_LTO=1
mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69344 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 3df0ab3594..693a410441 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -2117,7 +2117,7 @@ ICmpInst *LoopStrengthReduce::ChangeCompareStride(Loop *L, ICmpInst *Cond, NewOffset = TyBits == NewTyBits ? SE->getMulExpr(CondUse->Offset, SE->getConstant(ConstantInt::get(CmpTy, Scale))) - : SE->getConstant(ConstantInt::get(NewCmpTy, + : SE->getConstant(ConstantInt::get(IntegerType::get(NewTyBits), cast<SCEVConstant>(CondUse->Offset)->getValue()->getSExtValue()*Scale)); break; } |