NewTPI->takeName(TPI);
NewTPI->setDebugLoc(TPI->getDebugLoc());
TPI->eraseFromParent();
- } else if (auto *CPI = dyn_cast<CatchPadInst>(TI)) {
- llvm_unreachable("A catchpad may not unwind to a cleanuppad.");
} else {
llvm_unreachable("Unexpected predecessor to cleanup pad.");
}
CEP->setUnwindDest(UnwindDest);
else if (auto *TPI = dyn_cast<TerminatePadInst>(TI))
TPI->setUnwindDest(UnwindDest);
- else if (auto *CPI = dyn_cast<CatchPadInst>(TI))
- llvm_unreachable("A catchpad may not unwind to a cleanuppad.");
else
llvm_unreachable("Unexpected predecessor to cleanup pad.");
}