diff options
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 8462945a74..9bc897fe02 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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; |