diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 18b595fad85..0715e20c325 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -1548,11 +1548,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) { LoadInst * LI = new LoadInst (CI->getOperand(1), "", true, CI); CI->replaceAllUsesWith (LI); BB->getInstList().erase (CI); - if (Before) { // Move iterator to instruction after call - I = Before; ++I; - } else { - I = BB->begin(); - } break; } case Intrinsic::writeio: { @@ -1563,11 +1558,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) { CI->getOperand(2), true, CI); CI->replaceAllUsesWith (LI); BB->getInstList().erase (CI); - if (Before) { // Move iterator to instruction after call - I = Before; ++I; - } else { - I = BB->begin(); - } break; } default: diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index 18b595fad85..0715e20c325 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -1548,11 +1548,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) { LoadInst * LI = new LoadInst (CI->getOperand(1), "", true, CI); CI->replaceAllUsesWith (LI); BB->getInstList().erase (CI); - if (Before) { // Move iterator to instruction after call - I = Before; ++I; - } else { - I = BB->begin(); - } break; } case Intrinsic::writeio: { @@ -1563,11 +1558,6 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) { CI->getOperand(2), true, CI); CI->replaceAllUsesWith (LI); BB->getInstList().erase (CI); - if (Before) { // Move iterator to instruction after call - I = Before; ++I; - } else { - I = BB->begin(); - } break; } default: