OSDN Git Service

Fix the second bug attached to PR504.
authorChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2005 20:11:45 +0000 (20:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2005 20:11:45 +0000 (20:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20181 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/IndVarSimplify.cpp

index bc86702..aabc96c 100644 (file)
@@ -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;