Searched refs:OldCall (Results 1 – 3 of 3) sorted by relevance
2029 Instruction *OldCall = &Call; in visitCallBase() local2030 CreateNonTerminatorUnreachable(OldCall); in visitCallBase()2033 if (!OldCall->getType()->isVoidTy()) in visitCallBase()2034 replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType())); in visitCallBase()2035 if (isa<CallInst>(OldCall)) in visitCallBase()2036 return eraseInstFromFunction(*OldCall); in visitCallBase()2040 cast<CallBase>(OldCall)->setCalledFunction( in visitCallBase()
2534 Instruction *OldCall = CS.getInstruction(); in visitCallSite() local2537 OldCall); in visitCallSite()2540 if (!OldCall->getType()->isVoidTy()) in visitCallSite()2541 replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType())); in visitCallSite()2542 if (isa<CallInst>(OldCall)) in visitCallSite()2543 return eraseInstFromFunction(*OldCall); in visitCallSite()2547 cast<InvokeInst>(OldCall)->setCalledFunction( in visitCallSite()
4454 Instruction *OldCall = &Call; in visitCallBase() local4455 CreateNonTerminatorUnreachable(OldCall); in visitCallBase()4458 if (!OldCall->getType()->isVoidTy()) in visitCallBase()4459 replaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType())); in visitCallBase()4460 if (isa<CallInst>(OldCall)) in visitCallBase()4461 return eraseInstFromFunction(*OldCall); in visitCallBase()4465 cast<CallBase>(OldCall)->setCalledFunction( in visitCallBase()