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 5d737e2..ea50f3e 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -165,7 +165,7 @@
     }
 
     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);
     }