From 8a7980b5eae56a741cced6993a98d94d2c617318 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 14 Feb 2005 20:11:45 +0000 Subject: [PATCH] Fix the second bug attached to PR504. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20181 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index bc867029569..aabc96c8f24 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; -- 2.34.1