From 2b994c7206b3872d908468fc926ba8db483cf0a3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 19 Jun 2004 18:15:50 +0000 Subject: [PATCH] Fix a nasty bug, noticed by Reid git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14249 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }