Fix the second bug attached to PR504.

llvm-svn: 20181
This commit is contained in:
Chris Lattner 2005-02-14 20:11:45 +00:00
parent a3a55bf997
commit 31f3382b3b
1 changed files with 1 additions and 1 deletions

View 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;