From 7cabf6f87a29f116bf90cadd101c0fda0b31c4ff Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 12 Oct 2004 01:02:29 +0000 Subject: 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! llvm-svn: 16925 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 3398b376abf..00249807cac 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/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; } -- cgit v1.2.3