API changes for class Use size reduction, wave 1.
[oota-llvm.git] / lib / Transforms / Scalar / GCSE.cpp
index d062297c55ec781abf6bb571e37577051c99eed4..39a1b257258073a123d797f30df865593bae909d 100644 (file)
@@ -192,7 +192,7 @@ void GCSE::ReplaceInstructionWith(Instruction *I, Value *V) {
   if (InvokeInst *II = dyn_cast<InvokeInst>(I)) {
     // Removing an invoke instruction requires adding a branch to the normal
     // destination and removing PHI node entries in the exception destination.
-    new BranchInst(II->getNormalDest(), II);
+    BranchInst::Create(II->getNormalDest(), II);
     II->getUnwindDest()->removePredecessor(II->getParent());
   }