Push LLVMContexts through the IntegerType APIs.
[oota-llvm.git] / lib / Transforms / IPO / PruneEH.cpp
index d2a6530cd9edad2043d143f20c41c4e26a0b7e03..5cc43a5fe44ec786ac6dfad04ad5ac952837b945 100644 (file)
@@ -215,7 +215,7 @@ bool PruneEH::SimplifyFunction(Function *F) {
 
           // Remove the uncond branch and add an unreachable.
           BB->getInstList().pop_back();
-          new UnreachableInst(BB);
+          new UnreachableInst(BB->getContext(), BB);
 
           DeleteBasicBlock(New);  // Delete the new BB.
           MadeChange = true;