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
This commit is contained in:
Chris Lattner 2004-10-12 01:02:29 +00:00
parent a4b9c7841f
commit 989cbd58fb

View File

@ -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;
}