From: Chris Lattner Date: Sat, 19 Jun 2004 18:15:50 +0000 (+0000) Subject: Fix a nasty bug, noticed by Reid X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b994c7206b3872d908468fc926ba8db483cf0a3;p=oota-llvm.git Fix a nasty bug, noticed by Reid git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14249 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 5d737e2b194..ea50f3e4c9c 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -165,7 +165,7 @@ namespace { } Value *visitZeroExtendExpr(SCEVZeroExtendExpr *S) { - Value *V = expandInTy(S->getOperand(),V->getType()->getUnsignedVersion()); + Value *V = expandInTy(S->getOperand(),S->getType()->getUnsignedVersion()); return new CastInst(V, S->getType(), "tmp.", InsertPt); }