Lines Matching defs:CatchSwitch
260 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) {
261 if (CatchSwitch->hasUnwindDest()) {
262 UnwindDestToken = CatchSwitch->getUnwindDest()->getFirstNonPHI();
270 for (auto HI = CatchSwitch->handler_begin(),
271 HE = CatchSwitch->handler_end();
505 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) {
506 assert(CatchSwitch->getUnwindDest() == nullptr && "Expected useless pad");
507 for (BasicBlock *HandlerBlock : CatchSwitch->handlers()) {
714 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) {
715 if (CatchSwitch->unwindsToCaller()) {
718 dyn_cast<Instruction>(CatchSwitch->getParentPad())) {
741 CatchSwitch->getParentPad(), UnwindDest,
742 CatchSwitch->getNumHandlers(), CatchSwitch->getName(),
743 CatchSwitch->getIterator());
744 for (BasicBlock *PadBB : CatchSwitch->handlers())
2750 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) {
2751 if (isa<ConstantTokenNone>(CatchSwitch->getParentPad()))
2752 CatchSwitch->setParentPad(CallSiteEHPad);