aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-19 18:15:50 +0000
committerChris Lattner <sabre@nondot.org>2004-06-19 18:15:50 +0000
commit2b994c7206b3872d908468fc926ba8db483cf0a3 (patch)
treec09261e26333f3d957814c28f329f74ae495752b /lib
parentedb8433c917d97c237832954135e785b8c84f045 (diff)
downloadexternal_llvm-2b994c7206b3872d908468fc926ba8db483cf0a3.zip
external_llvm-2b994c7206b3872d908468fc926ba8db483cf0a3.tar.gz
external_llvm-2b994c7206b3872d908468fc926ba8db483cf0a3.tar.bz2
Fix a nasty bug, noticed by Reid
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ 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);
}