From 989cbd58fb769e920fbf15b6a0fe0888aed553c9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 12 Oct 2004 01:02:29 +0000 Subject: [PATCH] Fix a REALLY obscure bug in my previous checkin, which was splicing the END marker from one ilist into the middle of another basic block! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16925 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 3398b376abf..00249807cac 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -138,7 +138,7 @@ namespace { // Splice the cast immediately after the operand in question. BasicBlock::InstListType &InstList = I->getParent()->getInstList(); - InstList.splice(It, InstList, CI); + InstList.splice(It, CI->getParent()->getInstList(), CI); } return CI; } -- 2.34.1