diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-14 20:11:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-14 20:11:45 +0000 |
commit | 31f3382b3b816ec1e5ee15e4b2bc1e34f7278a97 (patch) | |
tree | ecb1ff796a5b69bdc578601a91d81cdda2d2ff56 /llvm/lib/Transforms | |
parent | a3a55bf99706394e028f32337a99ff6492b5914b (diff) | |
download | bcm5719-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.cpp | 2 |
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; |