From 006118fe8c73d8009d7952b84cabd50882ed0033 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Apr 2004 06:03:17 +0000 Subject: [PATCH] Fix some of the strange CBE-only failures that happened last night. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12980 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 8462945a742..9bc897fe022 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; -- 2.34.1