Fix bug: LICM/sink_multiple_exits.ll

Thanks for pointing this out John  :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-12-10 22:35:56 +00:00
parent df45bd3803
commit 7d3ced934f

View File

@ -451,7 +451,7 @@ void LICM::sink(Instruction &I) {
// instruction, otherwise clone the original instruction and insert
// the copy.
Instruction *New;
if (InsertedBlocks.empty()) {
if (InsertedBlocks.size() == 1) {
I.getParent()->getInstList().remove(&I);
ExitBlock->getInstList().insert(InsertPt, &I);
New = &I;