summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-14 20:11:45 +0000
committerChris Lattner <sabre@nondot.org>2005-02-14 20:11:45 +0000
commit31f3382b3b816ec1e5ee15e4b2bc1e34f7278a97 (patch)
treeecb1ff796a5b69bdc578601a91d81cdda2d2ff56 /llvm/lib/Transforms
parenta3a55bf99706394e028f32337a99ff6492b5914b (diff)
downloadbcm5719-llvm-31f3382b3b816ec1e5ee15e4b2bc1e34f7278a97.tar.gz
bcm5719-llvm-31f3382b3b816ec1e5ee15e4b2bc1e34f7278a97.zip
Fix the second bug attached to PR504.
llvm-svn: 20181
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index bc867029569..aabc96c8f24 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -139,7 +139,7 @@ namespace {
if (It != BasicBlock::iterator(CI)) {
// Splice the cast immediately after the operand in question.
BasicBlock::InstListType &InstList =
- I->getParent()->getInstList();
+ It->getParent()->getInstList();
InstList.splice(It, CI->getParent()->getInstList(), CI);
}
return CI;
OpenPOWER on IntegriCloud