diff options
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 8462945a742..9bc897fe022 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -386,6 +386,7 @@ void IndVarSimplify::runOnLoop(Loop *L) {    // Now that we know the largest of of the induction variables in this loop,    // insert a canonical induction variable of the largest size. +  LargestType = LargestType->getUnsignedVersion();    Value *IndVar = Rewriter.GetOrInsertCanonicalInductionVariable(L,LargestType);    ++NumInserted;    Changed = true; | 

