IPO: Remove implicit ilist iterator conversions, NFC
[oota-llvm.git] / lib / Transforms / IPO / PruneEH.cpp
index b2f1010c9a07f5629a3b8a19db46a1c53b1f4844..a0b740563693dfddc244b280b9756da1ef30bcbb 100644 (file)
@@ -233,7 +233,7 @@ bool PruneEH::SimplifyFunction(Function *F) {
 
           // Remove the uncond branch and add an unreachable.
           BB->getInstList().pop_back();
-          new UnreachableInst(BB->getContext(), BB);
+          new UnreachableInst(BB->getContext(), &*BB);
 
           DeleteBasicBlock(New);  // Delete the new BB.
           MadeChange = true;