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 | 8a7980b5eae56a741cced6993a98d94d2c617318 (patch) | |
tree | 5f831bd47fa2cd5b896ffb1ccdf5db990c136a14 /lib/Transforms | |
parent | a92d12c053510bdad196965a6bac3168d807802e (diff) | |
download | llvm-8a7980b5eae56a741cced6993a98d94d2c617318.tar.gz llvm-8a7980b5eae56a741cced6993a98d94d2c617318.tar.bz2 llvm-8a7980b5eae56a741cced6993a98d94d2c617318.tar.xz |
Fix the second bug attached to PR504.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index bc86702956..aabc96c8f2 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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; |