Lines Matching defs:UnwindDest
5413 // set UnwindDest to nullptr.
5414 BasicBlock *UnwindDest = RI->getUnwindDest();
5419 // be certain that UnwindDest and BB have no common predecessors (since they
5421 if (UnwindDest) {
5422 // First, go through the PHI nodes in UnwindDest and update any nodes that
5424 for (PHINode &DestPN : UnwindDest->phis()) {
5426 // Since BB unwinds to UnwindDest, it has to be in the PHI node.
5435 // Because BB and UnwindDest are both EH pads, all of their
5450 // Sink any remaining PHI nodes directly into UnwindDest.
5451 BasicBlock::iterator InsertPt = UnwindDest->getFirstNonPHIIt();
5459 // Otherwise, sink this PHI node into UnwindDest.
5460 // Any predecessors to UnwindDest which are not already represented
5463 for (auto *pred : predecessors(UnwindDest))
5477 if (UnwindDest == nullptr) {
5487 TI->replaceUsesOfWith(BB, UnwindDest);
5489 Updates.push_back({DominatorTree::Insert, PredBB, UnwindDest});
5507 BasicBlock *UnwindDest = RI->getUnwindDest();
5508 if (!UnwindDest)
5513 if (UnwindDest->getSinglePredecessor() != RI->getParent())
5517 auto *SuccessorCleanupPad = dyn_cast<CleanupPadInst>(&UnwindDest->front());
5530 BranchInst::Create(UnwindDest, RI->getParent());